]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinview.cpp
Always clear DolphinView's m_currentItemUrl member in updateViewState()
[dolphin.git] / src / views / dolphinview.cpp
index c1f585da9448cf8955355db9120921b6130b8e29..02b8815e07a8e7377991d600fc8ba41e4cc89f05 100644 (file)
@@ -1289,11 +1289,11 @@ void DolphinView::updateViewState()
                 m_view->scrollToItem(currentIndex);
                 m_scrollToCurrentItem = false;
             }
-
-            m_currentItemUrl = KUrl();
         } else {
             selectionManager->setCurrentItem(0);
         }
+
+        m_currentItemUrl = KUrl();
     }
 
     if (!m_restoredContentsPosition.isNull()) {