diff options
Diffstat (limited to 'src/selectionmanager.cpp')
| -rw-r--r-- | src/selectionmanager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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 <QAbstractButton> #include <QAbstractItemView> #include <QAbstractProxyModel> +#include <QApplication> #include <QModelIndex> #include <QPainter> #include <QPaintEvent> @@ -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) { |
