diff options
| author | Peter Penz <[email protected]> | 2008-05-07 21:11:49 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-05-07 21:11:49 +0000 |
| commit | edabe0a7c8d047e8500fc3e8027fc3d19f346f77 (patch) | |
| tree | 3557ef5a4fd2096edb9b986ea0a63b821a60bd2e | |
| parent | 197abb4be8500fed28eeb0a9bc1c2ca5135a9f67 (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
| -rw-r--r-- | src/dolphiniconsview.cpp | 2 |
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; } |
