From 5e9de7232e6e00547b57187ba105aff44303b75d Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 9 Apr 2008 20:48:32 +0000 Subject: fix drag & drop issue (multiple selected items have been deselected when starting to drag) svn path=/trunk/KDE/kdebase/apps/; revision=795339 --- src/dolphindetailsview.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/dolphindetailsview.cpp') diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index dc9048225..470cafa1d 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -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); } } -- cgit v1.3