┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphiniconsview.cpp')
-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;
}