From 7d0bbe06dc6e3f69144a5a2c4c697e2d8d0681ec Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Thu, 29 Jan 2026 17:20:21 +0100 Subject: 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. --- src/views/draganddrophelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/views/draganddrophelper.cpp') 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) -- cgit v1.3