blob: ee6c343ac0f1640d7cc4838d2f949620cac729bc (
plain) (
tree)
|
|
From 123eec787f0198b91c3bfdb17262df0c5e9a8c28 Mon Sep 17 00:00:00 2001
From: Felix Ernst <felixernst@zohomail.eu>
Date: Mon, 14 Oct 2024 14:44:47 +0200
Subject: [PATCH 3/4] Fix double-click view background feature
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index bf605fa96..9b2c0f97e 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -2922,7 +2922,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;
}
--
2.47.0
|