┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-05-07 21:11:49 +0000
committerPeter Penz <[email protected]>2008-05-07 21:11:49 +0000
commitedabe0a7c8d047e8500fc3e8027fc3d19f346f77 (patch)
tree3557ef5a4fd2096edb9b986ea0a63b821a60bd2e /src
parent197abb4be8500fed28eeb0a9bc1c2ca5135a9f67 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/dolphiniconsview.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}