1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 02:38:11 +00:00

FileManager: Fix assertion when drag&dropping a file to the desktop

This commit is contained in:
Andreas Kling 2020-12-16 19:40:24 +01:00
parent 226ac8a47b
commit 5eacf62ba3

View file

@ -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();
}