diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-30 19:07:05 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-30 19:08:05 +0200 |
commit | e1a8d10b61c5f8ca092ba3aa458b661da29ba447 (patch) | |
tree | 4de5ca75c3d19e4bd4c5c25a4362768b3e994326 /src/plugins/FileManager.cpp | |
parent | 86d228bfc3e9c81c011c31bc81a908a21f975bfb (diff) |
Matrix: add message replying with ctrl+r, also use shared_ptr for BodyItem
Diffstat (limited to 'src/plugins/FileManager.cpp')
-rw-r--r-- | src/plugins/FileManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/FileManager.cpp b/src/plugins/FileManager.cpp index c68bb94..d8a0612 100644 --- a/src/plugins/FileManager.cpp +++ b/src/plugins/FileManager.cpp @@ -42,7 +42,7 @@ namespace QuickMedia { }); for(auto &p : paths) { - auto body_item = std::make_unique<BodyItem>(p.path().filename().string()); + auto body_item = BodyItem::create(p.path().filename().string()); // TODO: Check file magic number instead of extension? if(p.is_regular_file() && is_image_ext(get_ext(p.path()))) { body_item->thumbnail_is_local = true; |