┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincolumnwidget.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-06-29 19:32:39 +0000
committerPeter Penz <[email protected]>2009-06-29 19:32:39 +0000
commitc1a086da25e746ddf7dbe7f212d3cc61a9174035 (patch)
tree68434866e3901365caf7b925d1e00afbd0862abd /src/dolphincolumnwidget.cpp
parent76d52a5ff1b3ec3f991ed71b322aa7bbcb2e4ef1 (diff)
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
Diffstat (limited to 'src/dolphincolumnwidget.cpp')
-rw-r--r--src/dolphincolumnwidget.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp
index e85c9491b..c8bff0290 100644
--- a/src/dolphincolumnwidget.cpp
+++ b/src/dolphincolumnwidget.cpp
@@ -491,9 +491,7 @@ void DolphinColumnWidget::selectionChanged(const QItemSelection& selected, const
void DolphinColumnWidget::currentChanged(const QModelIndex& current, const QModelIndex& previous)
{
QListView::currentChanged(current, previous);
- if (current.isValid() && !m_autoScroller->isActive()) {
- scrollTo(current);
- }
+ m_autoScroller->handleCurrentIndexChange(current, previous);
}
void DolphinColumnWidget::slotEntered(const QModelIndex& index)