]> cloud.milkyroute.net Git - dolphin.git/commitdiff
fix drag & drop issue (multiple selected items have been deselected when starting...
authorPeter Penz <peter.penz19@gmail.com>
Wed, 9 Apr 2008 20:48:32 +0000 (20:48 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Wed, 9 Apr 2008 20:48:32 +0000 (20:48 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=795339

src/dolphindetailsview.cpp

index dc90482257f7ea994e66b1a4fc7c5c6ff8a24380..470cafa1d1e15ceb3e7c46bb8aca9b5a11de9eab 100644 (file)
@@ -358,12 +358,7 @@ void DolphinDetailsView::currentChanged(const QModelIndex& current, const QModel
 
     // Stay consistent with QListView: When changing the current index by key presses,
     // also change the selection.
-    const Qt::KeyboardModifiers modifier = QApplication::keyboardModifiers();
-    const bool adjustSelection =  !(modifier & Qt::ShiftModifier) &&
-                                  !(modifier & Qt::ControlModifier) &&
-                                  !m_showElasticBand;
-
-    if (adjustSelection) {
+    if (QApplication::mouseButtons() == Qt::NoButton) {
         selectionModel()->select(current, QItemSelectionModel::ClearAndSelect);
     }
 }