diff options
| author | Frank Reininghaus <[email protected]> | 2009-09-08 17:52:52 +0000 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2009-09-08 17:52:52 +0000 |
| commit | e725c334fb9f3da9e261f1701b21c73585bdb1e9 (patch) | |
| tree | 14705ea057957df8ed9efb5a24605532a277f8bd | |
| parent | be9eb65bccf2e207d079ba09500c518ab6c5c586 (diff) | |
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
| -rw-r--r-- | src/dolphindetailsview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |
