diff options
| author | Peter Penz <[email protected]> | 2009-01-05 18:21:34 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-01-05 18:21:34 +0000 |
| commit | b2db9bd9eddcfaa01cdc2239bb73fa7f74767d56 (patch) | |
| tree | 3b09647637af3c321e4677d4d03fab5ec4d218e2 /src | |
| parent | 59ac1d10ae41208c024048111d946a0d149c7716 (diff) | |
QAbstractItemView::scrollTo() may get called by QListView::keyPressEvent(), so m_enableScrollTo (which is checked in DolphinIconsView::scrollTo()) must be enabled before. This fixes the issue that the autoscrolling does not work if exactly one item is selected and an invisible item should get focused because of a key press.
BUG: 179049
svn path=/trunk/KDE/kdebase/apps/; revision=906179
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphiniconsview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index 4b886f222..f32ecbd3d 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -261,9 +261,9 @@ void DolphinIconsView::dropEvent(QDropEvent* event) void DolphinIconsView::keyPressEvent(QKeyEvent* event) { + m_enableScrollTo = true; // see DolphinIconsView::scrollTo() KCategorizedView::keyPressEvent(event); m_controller->handleKeyPressEvent(event); - m_enableScrollTo = true; // see DolphinIconsView::scrollTo() } void DolphinIconsView::wheelEvent(QWheelEvent* event) |
