From edabe0a7c8d047e8500fc3e8027fc3d19f346f77 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 7 May 2008 21:11:49 +0000 Subject: [PATCH] don't disable the scrollTo() functionality if a QAbstractItemView state is set (e. g. DragSelectingState requires the scrollTo() functionality) svn path=/trunk/KDE/kdebase/apps/; revision=805216 --- src/dolphiniconsview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index d30012d45..a7b256d2b 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -143,7 +143,7 @@ void DolphinIconsView::scrollTo(const QModelIndex& index, ScrollHint hint) // index each time the layout has been changed. This becomes an issue when // previews are loaded and the scrollbar is used: the scrollbar will always // be reset to 0 on each new preview. - if (m_enableScrollTo) { + if (m_enableScrollTo || (state() != QAbstractItemView::NoState)) { KCategorizedView::scrollTo(index, hint); m_enableScrollTo = false; } -- 2.47.3