From: Peter Penz Date: Sat, 7 Jun 2008 15:53:34 +0000 (+0000) Subject: Update the keypress state before invoking QTreeView::keyPressEvent(), as this call... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/8cfe659711f1ea443d2c835154a7bddcd6ea72d3 Update the keypress state before invoking QTreeView::keyPressEvent(), as this call invokes QTreeView::currentChanged(), where the value is needed. This fix assures that the selection is changed when the current index is changed like in QListView. svn path=/trunk/KDE/kdebase/apps/; revision=818070 --- diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 932efcb1e..d45282602 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -363,9 +363,9 @@ void DolphinDetailsView::paintEvent(QPaintEvent* event) void DolphinDetailsView::keyPressEvent(QKeyEvent* event) { + m_keyPressed = true; QTreeView::keyPressEvent(event); m_controller->handleKeyPressEvent(event); - m_keyPressed = true; } void DolphinDetailsView::keyReleaseEvent(QKeyEvent* event)