From: Peter Penz Date: Wed, 9 Apr 2008 20:48:32 +0000 (+0000) Subject: fix drag & drop issue (multiple selected items have been deselected when starting... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/5e9de7232e6e00547b57187ba105aff44303b75d fix drag & drop issue (multiple selected items have been deselected when starting to drag) svn path=/trunk/KDE/kdebase/apps/; revision=795339 --- 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); } }