]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix double-click view background feature
authorFelix Ernst <felixernst@zohomail.eu>
Mon, 14 Oct 2024 12:44:47 +0000 (14:44 +0200)
committerFelix Ernst <felixernst@kde.org>
Tue, 15 Oct 2024 10:35:10 +0000 (10:35 +0000)
c934e803647674b4692668f047b6ffa18121982a was meant to change the
double-click view background feature to only allow double-clicks
with the left mouse button. However, it mistakenly did the exact
opposite and allowed every double-click except ones with the left
mouse button to trigger the feature. This one-liner fixes this.

src/dolphinmainwindow.cpp

index 54cd3bf71b974d6fa66ad340302d12f31321d8a6..7d62f52edf17bd79d7bcbef0488254409f9cedc6 100644 (file)
@@ -2969,7 +2969,7 @@ bool DolphinMainWindow::isItemVisibleInAnyView(const QString &urlOfItem)
 
 void DolphinMainWindow::slotDoubleClickViewBackground(Qt::MouseButton button)
 {
-    if (button == Qt::MouseButton::LeftButton) {
+    if (button != Qt::MouseButton::LeftButton) {
         // only handle left mouse button for now
         return;
     }