From: Peter Penz Date: Tue, 9 Dec 2008 17:49:09 +0000 (+0000) Subject: a rubberband selection is only possible when using the left mouse button X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/4e1c5471ef9f49c287b869310f0f8f20fa300a36 a rubberband selection is only possible when using the left mouse button svn path=/trunk/KDE/kdebase/apps/; revision=894969 --- 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(event)->button() == Qt::LeftButton) { + m_rubberBandSelection = true; + } break; case QEvent::MouseMove: