┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dolphinviewautoscroller.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dolphinviewautoscroller.cpp b/src/dolphinviewautoscroller.cpp
index de5e1e71f..5e9e17f1f 100644
--- a/src/dolphinviewautoscroller.cpp
+++ b/src/dolphinviewautoscroller.cpp
@@ -52,7 +52,9 @@ bool DolphinViewAutoScroller::eventFilter(QObject* watched, QEvent* event)
if (watched == m_itemView->viewport()) {
switch (event->type()) {
case QEvent::MouseButtonPress:
- m_rubberBandSelection = true;
+ if (static_cast<QMouseEvent*>(event)->button() == Qt::LeftButton) {
+ m_rubberBandSelection = true;
+ }
break;
case QEvent::MouseMove: