From: Rafael Fernández López Date: Thu, 17 Jan 2008 21:03:30 +0000 (+0000) Subject: When moving left/right by pressing left/right arrows on keyboard, the previous curren... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/0e56e0ddcea8db8bb98b387158e0b0cae2a00a26?hp=-c 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 --- 0e56e0ddcea8db8bb98b387158e0b0cae2a00a26 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(); }