[frameworks/kio] src/widgets: KUrlComboBox: mark drag properly as copy-only

Friedrich W. H. Kossebau <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit ed8b6d7cde0e13c6ba9dffd774e672faf86e6dde by Friedrich W. H. Kossebau.
Committed on 17/07/2026 at 13:23.
Pushed by kossebau into branch 'master'.

KUrlComboBox: mark drag properly as copy-only

M  +1    -1    src/widgets/kurlcombobox.cpp

https://invent.kde.org/frameworks/kio/-/commit/ed8b6d7cde0e13c6ba9dffd774e672faf86e6dde

diff --git a/src/widgets/kurlcombobox.cpp b/src/widgets/kurlcombobox.cpp
index 16e56d57c9..f9990faf77 100644
--- a/src/widgets/kurlcombobox.cpp
+++ b/src/widgets/kurlcombobox.cpp
@@ -402,7 +402,7 @@ void KUrlComboBox::mouseMoveEvent(QMouseEvent *event)
             drag->setPixmap(itemIcon(index).pixmap(KIconLoader::SizeMedium));
         }
         drag->setMimeData(mime);
-        drag->exec();
+        drag->exec(Qt::CopyAction);
     }
 
     KComboBox::mouseMoveEvent(event);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.