diff options
| author | Kai Uwe Broulik <[email protected]> | 2026-01-29 17:20:21 +0100 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2026-02-01 17:33:06 +0000 |
| commit | 7d0bbe06dc6e3f69144a5a2c4c697e2d8d0681ec (patch) | |
| tree | 9cb153f0ea3a1993e6a1401047afcc9bedf90acd /src/views/draganddrophelper.cpp | |
| parent | 66b466443db933354c5f3e7aeaa30f754860ec21 (diff) | |
Support drop onto executable to run it
We already support dropping onto desktop files.
This is also something that KDirOperator did but Dolphin does not.
Diffstat (limited to 'src/views/draganddrophelper.cpp')
| -rw-r--r-- | src/views/draganddrophelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/draganddrophelper.cpp b/src/views/draganddrophelper.cpp index 7b9949df4..7b0e8ef66 100644 --- a/src/views/draganddrophelper.cpp +++ b/src/views/draganddrophelper.cpp @@ -70,7 +70,7 @@ KIO::DropJob *DragAndDropHelper::dropUrls(const QUrl &destUrl, QDropEvent *event bool DragAndDropHelper::supportsDropping(const KFileItem &destItem) { - return (destItem.isDir() && destItem.isWritable()) || destItem.isDesktopFile(); + return (destItem.isDir() && destItem.isWritable()) || destItem.isDesktopFile() || (destItem.isFile() && destItem.isLocalFile() && destItem.isExecutable()); } void DragAndDropHelper::updateDropAction(QDropEvent *event, const QUrl &destUrl) |
