From: Felix Ernst Date: Mon, 14 Oct 2024 12:44:47 +0000 (+0200) Subject: Fix double-click view background feature X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/ef4525e53568385053a638311f6ad751d42f2f4c 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. --- diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 54cd3bf71..7d62f52ed 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -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; }