]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Don't show the pointing-hand cursor when double-click is enabled
authorPeter Penz <peter.penz19@gmail.com>
Mon, 31 Jan 2011 20:29:10 +0000 (21:29 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Mon, 31 Jan 2011 20:29:10 +0000 (21:29 +0100)
CCBUG: 264796

src/views/selectionmanager.cpp

index c06d827bddbd69c1acccee90e1956c19a5b00d07..9c0dd8bda24da68ec1bce8026c896d80e348a617 100644 (file)
@@ -22,6 +22,7 @@
 #include "dolphinmodel.h"
 #include "selectiontoggle.h"
 #include <kdirmodel.h>
+#include <kglobalsettings.h>
 #include <kiconeffect.h>
 
 #include <QAbstractButton>
@@ -115,7 +116,9 @@ void SelectionManager::slotEntered(const QModelIndex& index)
                             (index.column() == DolphinModel::Name) &&
                             (QApplication::mouseButtons() == Qt::NoButton);
     if (showToggle) {
-        applyPointingHandCursor();
+        if (KGlobalSettings::singleClick()) {
+            applyPointingHandCursor();
+        }
 
         m_toggle->setUrl(urlForIndex(index));