From: Peter Penz Date: Wed, 7 May 2008 21:11:49 +0000 (+0000) Subject: don't disable the scrollTo() functionality if a QAbstractItemView state is set (e... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/edabe0a7c8d047e8500fc3e8027fc3d19f346f77 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 --- 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; }