┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2024-08-13 11:01:43 +0200
committerMéven Car <[email protected]>2024-08-16 07:05:28 +0000
commitc934e803647674b4692668f047b6ffa18121982a (patch)
treeaf6331c033ec9d2f8c4b1b70bcaed83c08e8b654 /src
parent1d67ba784aec76317288e1b13335c7d31607fa8b (diff)
Only accept left mouse button for double click actions
Such * double click background BUG: 485295
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 8bc066455..bf605fa96 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -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();