1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 17:55:06 +00:00

FileManager+LibGUI: Allow drop on entire DirectoryView

Previously, drag and drop would only work when dragging between node
items on a DirectoryView. This commit makes it possible to drag files to
the empty area of the DirectoryView and copy files more easily between
windows.
This commit is contained in:
angel 2020-04-19 18:36:00 +02:00 committed by Andreas Kling
parent 27091d05ee
commit e0a16f8752
2 changed files with 3 additions and 5 deletions

View file

@ -350,9 +350,6 @@ void AbstractView::drop_event(DropEvent& event)
return;
auto index = index_at_event_position(event.position());
if (!index.is_valid())
return;
if (on_drop)
on_drop(index, event);
}