From: Peter Penz Date: Thu, 7 May 2009 16:28:34 +0000 (+0000) Subject: don't show the selection toggle during a rubberband selection X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/c4a72177e2c115870d26b4dfae894d824ce40183?ds=inline don't show the selection toggle during a rubberband selection BUG: 181783 svn path=/trunk/KDE/kdebase/apps/; revision=964913 --- diff --git a/src/selectionmanager.cpp b/src/selectionmanager.cpp index 1722bc3c5..7a7034d22 100644 --- a/src/selectionmanager.cpp +++ b/src/selectionmanager.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -62,7 +63,10 @@ void SelectionManager::reset() void SelectionManager::slotEntered(const QModelIndex& index) { m_toggle->hide(); - if (index.isValid() && (index.column() == DolphinModel::Name)) { + const bool showToggle = index.isValid() && + (index.column() == DolphinModel::Name) && + (QApplication::mouseButtons() == Qt::NoButton); + if (showToggle) { m_toggle->setUrl(urlForIndex(index)); if (!m_connected) {