Skip to content

KFilePlacesView: Ignore own drag events in dropOnPlace

When drop on place is enabled (Dolphin), one can drop an item onto a place to copy/move/link it into the folder the place points to.

However, you can also drop a place onto another place. This doesn't really make sense and makes re-arranging places hard because you can only drop them inbetween places.

This change rejects drag events coming from the KFilePlacesView and instead offers the full drop area for re-arranging as you have with dropOnPlace disabled (file dialog).

It is still possible to drop a file/folder from elsewhere onto the place and also to drag a place into a folder, just not drop a place onto another place.


@meven @felixernst

The only real use case I could see for this is dragging the Documents folder onto an external hard drive to back it up or something but I think that’s also a bit of a stretch.

Merge request reports

Loading