From 0e56e0ddcea8db8bb98b387158e0b0cae2a00a26 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Thu, 17 Jan 2008 21:03:30 +0000 Subject: [PATCH] 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: peter.penz@gmx.at svn path=/trunk/KDE/kdebase/apps/; revision=762777 --- src/dolphincolumnwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); } -- 2.47.3