]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Scroll to the right position when going back and show hidden files is enabled.
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Thu, 24 Apr 2014 18:16:30 +0000 (20:16 +0200)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Thu, 24 Apr 2014 18:16:30 +0000 (20:16 +0200)
Instead of emitting the directoryLoadingCompleted signal (via slotCompleted) in
KFileItemModel::setShowHiddenFiles directly, we now call
dispatchPendingItemsToInsert instead.

@Frank: Thanks for your help!

FIXED-IN: 4.13.1
BUG: 332159
REVIEW: 117021

src/kitemviews/kfileitemmodel.cpp

index fd773e1e97afd1d608ba56bc0127e41b94f77a4c..a0f9305cb03264ea66d77c41a3495eb03c181a5a 100644 (file)
@@ -216,7 +216,7 @@ void KFileItemModel::setShowHiddenFiles(bool show)
     m_dirLister->setShowingDotFiles(show);
     m_dirLister->emitChanges();
     if (show) {
     m_dirLister->setShowingDotFiles(show);
     m_dirLister->emitChanges();
     if (show) {
-        slotCompleted();
+        dispatchPendingItemsToInsert();
     }
 }
 
     }
 }