X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d3496b12310d9fec0e52e537c341e87fcaa2f8b5..2a5b3ec615bb4e8123bdf5572eb9058d73740f22:/src/views/dolphinview.cpp diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 4ab16e052..db917ee5a 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -434,9 +434,13 @@ void DolphinView::refresh() m_active = true; createView(); - applyViewProperties(); reload(); + // For performance reasons applying the view properties should be done after updating + // the directory-lister URL with reload(). Otherwise in combination with enabled + // previews the creation of already obsolete directory items gets triggered. + applyViewProperties(); + setActive(oldActivationState); updateZoomLevel(oldZoomLevel); } @@ -544,7 +548,6 @@ void DolphinView::setUrl(const KUrl& url) m_viewModeController->setUrl(url); // emits urlChanged, which we forward m_viewAccessor.prepareUrlChange(url); - applyViewProperties(); // When changing the URL there is no need to keep the version // data of the previous URL. @@ -554,6 +557,11 @@ void DolphinView::setUrl(const KUrl& url) connectViewAccessor(); loadDirectory(url); + // For performance reasons applying the view properties should be done after updating + // the directory-lister URL with loadDirectory(). Otherwise in combination with enabled + // previews the creation of already obsolete directory items gets triggered. + applyViewProperties(); + if (hadSelection || hasSelection()) { emitSelectionChangedSignal(); }