From c1a086da25e746ddf7dbe7f212d3cc61a9174035 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 29 Jun 2009 19:32:39 +0000 Subject: Fixed issue that the scroll position is reset if the focus of the itemview changes. BUG: 197951 svn path=/trunk/KDE/kdebase/apps/; revision=989236 --- src/dolphindetailsview.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/dolphindetailsview.cpp') diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index ad362914a..aa65ff6bc 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -429,9 +429,7 @@ void DolphinDetailsView::wheelEvent(QWheelEvent* event) void DolphinDetailsView::currentChanged(const QModelIndex& current, const QModelIndex& previous) { QTreeView::currentChanged(current, previous); - if (current.isValid() && !m_autoScroller->isActive()) { - scrollTo(current); - } + m_autoScroller->handleCurrentIndexChange(current, previous); // Stay consistent with QListView: When changing the current index by key presses, // also change the selection. -- cgit v1.3