diff options
| author | Rafael Fernández López <[email protected]> | 2008-01-17 21:03:30 +0000 |
|---|---|---|
| committer | Rafael Fernández López <[email protected]> | 2008-01-17 21:03:30 +0000 |
| commit | 0e56e0ddcea8db8bb98b387158e0b0cae2a00a26 (patch) | |
| tree | ea38c08d99f54c2a36f0317aac0ad2ab7bd02e21 /src/dolphincolumnwidget.cpp | |
| parent | 3a44eb67f66fd5f75bf815207ba07ac306b9ba3a (diff) | |
When moving left/right by pressing left/right arrows on keyboard, the previous current index becomes selected to see which item was the last one
selected on that column.
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=762777
Diffstat (limited to 'src/dolphincolumnwidget.cpp')
| -rw-r--r-- | src/dolphincolumnwidget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp index f85e4eee2..3bb1f36c2 100644 --- a/src/dolphincolumnwidget.cpp +++ b/src/dolphincolumnwidget.cpp @@ -381,6 +381,9 @@ void DolphinColumnWidget::activate() this, SLOT(triggerItem(const QModelIndex&))); } + if (selectionModel() && selectionModel()->currentIndex().isValid()) + selectionModel()->setCurrentIndex(selectionModel()->currentIndex(), QItemSelectionModel::SelectCurrent); + updateBackground(); } |
