]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Who said there aren't coding races ? haha. Fix the keyboard navigation
authorRafael Fernández López <ereslibre@kde.org>
Thu, 17 Jan 2008 20:23:47 +0000 (20:23 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Thu, 17 Jan 2008 20:23:47 +0000 (20:23 +0000)
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

src/dolphincolumnwidget.cpp

index 4bcf018040134dc85472b7f8d224d44e0a22aeb6..0d696950e95ef940cdbed131e37868f0a753e277 100644 (file)
@@ -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();
 }