┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-06-07 15:53:34 +0000
committerPeter Penz <[email protected]>2008-06-07 15:53:34 +0000
commit8cfe659711f1ea443d2c835154a7bddcd6ea72d3 (patch)
tree8ca4e80dbe9af1b7dadbb0138b67ba4008e369c9 /src
parent13b2fc55704fbc734cd4f9cbae56cfc2ef3ec0ce (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/dolphindetailsview.cpp2
1 files changed, 1 insertions, 1 deletions
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)