]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Only accept left mouse button for double click actions
authorMéven Car <meven@kde.org>
Tue, 13 Aug 2024 09:01:43 +0000 (11:01 +0200)
committerMéven Car <meven@kde.org>
Fri, 16 Aug 2024 07:05:28 +0000 (07:05 +0000)
Such
 * double click background

BUG: 485295

src/dolphinmainwindow.cpp

index 8bc066455ea1a2cd7d2ddb1e6001737e7461c9e8..bf605fa9630e0ee483a5fc18bea443b9d09aa572 100644 (file)
@@ -2922,7 +2922,10 @@ bool DolphinMainWindow::isItemVisibleInAnyView(const QString &urlOfItem)
 
 void DolphinMainWindow::slotDoubleClickViewBackground(Qt::MouseButton button)
 {
-    Q_UNUSED(button) // might be of use later
+    if (button == Qt::MouseButton::LeftButton) {
+        // only handle left mouse button for now
+        return;
+    }
 
     GeneralSettings *settings = GeneralSettings::self();
     QString clickAction = settings->doubleClickViewAction();