From 8cfe659711f1ea443d2c835154a7bddcd6ea72d3 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 7 Jun 2008 15:53:34 +0000 Subject: [PATCH] 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 --- src/dolphindetailsview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 932efcb1e1..d452826026 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)