]> cloud.milkyroute.net Git - dolphin.git/commitdiff
don't disable the scrollTo() functionality if a QAbstractItemView state is set (e...
authorPeter Penz <peter.penz19@gmail.com>
Wed, 7 May 2008 21:11:49 +0000 (21:11 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Wed, 7 May 2008 21:11:49 +0000 (21:11 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=805216

src/dolphiniconsview.cpp

index d30012d454177eef857a6fbc8dcddc7f0d25e2d6..a7b256d2be8ab261e1413e1516c6872fda959aff 100644 (file)
@@ -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;
     }