diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-16 19:40:24 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-16 19:40:24 +0100 |
commit | 5eacf62ba30e7961ae66294fbeb8ec49dc035fbb (patch) | |
tree | a222ddc8a5e818a1edf88c5d72895061452ba2ba | |
parent | 226ac8a47b16e4c1b0e5384c608590c32f637018 (diff) | |
download | serenity-5eacf62ba30e7961ae66294fbeb8ec49dc035fbb.zip |
FileManager: Fix assertion when drag&dropping a file to the desktop
-rw-r--r-- | Applications/FileManager/DirectoryView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/FileManager/DirectoryView.cpp b/Applications/FileManager/DirectoryView.cpp index b5b2cc106d..c2f1beebba 100644 --- a/Applications/FileManager/DirectoryView.cpp +++ b/Applications/FileManager/DirectoryView.cpp @@ -579,7 +579,7 @@ void DirectoryView::handle_drop(const GUI::ModelIndex& index, const GUI::DropEve had_accepted_drop = true; } } - if (had_accepted_drop) + if (had_accepted_drop && on_accepted_drop) on_accepted_drop(); } |