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/dolphinview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/views/dolphinview.cpp') diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 9ade1e5e9..ec012c679 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1404,7 +1404,7 @@ void DolphinView::slotItemDropEvent(int index, QGraphicsSceneDragDropEvent *even { QUrl destUrl; KFileItem destItem = m_model->fileItem(index); - if (destItem.isNull() || (!destItem.isDir() && !destItem.isDesktopFile())) { + if (destItem.isNull() || (!destItem.isDir() && !destItem.isDesktopFile() && !destItem.isExecutable())) { // Use the URL of the view as drop target if the item is no directory // or desktop-file destItem = m_model->rootItem(); -- cgit v1.3