┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-04-09 20:48:32 +0000
committerPeter Penz <[email protected]>2008-04-09 20:48:32 +0000
commit5e9de7232e6e00547b57187ba105aff44303b75d (patch)
tree562c7ca6c5a646c1b7dc8a555e766b069088322f /src
parente847f4fec300b8a80679909c5d6a47ae21452732 (diff)
fix drag & drop issue (multiple selected items have been deselected when starting to drag)
svn path=/trunk/KDE/kdebase/apps/; revision=795339
Diffstat (limited to 'src')
-rw-r--r--src/dolphindetailsview.cpp7
1 files changed, 1 insertions, 6 deletions
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);
}
}