From: Frank Reininghaus Date: Tue, 8 Sep 2009 17:52:52 +0000 (+0000) Subject: Fix selection in the Details view in the following use case: X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/e725c334fb9f3da9e261f1701b21c73585bdb1e9?ds=sidebyside Fix selection in the Details view in the following use case: 1. Ctrl-click item 1. 2. Enter the first letter of item 2, such that it will be selected and the new current item. 3. Shift-click item 3. With this commit, all items between 2 and 3 will be selected, as expected, and not all items between 1 and 3. BUG: 201459 svn path=/trunk/KDE/kdebase/apps/; revision=1021267 --- diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 088e5dc7e..cf487b5e7 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -421,7 +421,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. if (m_keyPressed) { - selectionModel()->select(current, QItemSelectionModel::ClearAndSelect); + setCurrentIndex(current); } }