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:
parent
27091d05ee
commit
e0a16f8752
2 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue