From: Rafael Fernández López Date: Thu, 17 Jan 2008 20:23:47 +0000 (+0000) Subject: Who said there aren't coding races ? haha. Fix the keyboard navigation X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/50928d72e7b18a332fe41815caad68eaae951c95 Who said there aren't coding races ? haha. Fix the keyboard navigation in the special case of moving left to the previous column and going upwards or downwards. CCMAIL: peter.penz@gmx.at svn path=/trunk/KDE/kdebase/apps/; revision=762760 --- diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp index 4bcf01804..0d696950e 100644 --- a/src/dolphincolumnwidget.cpp +++ b/src/dolphincolumnwidget.cpp @@ -400,7 +400,9 @@ void DolphinColumnWidget::deactivate() this, SLOT(triggerItem(const QModelIndex&))); } + const QModelIndex current = selectionModel()->currentIndex(); selectionModel()->clear(); + selectionModel()->setCurrentIndex(current, QItemSelectionModel::NoUpdate); updateBackground(); }