]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinviewcontainer.cpp
Use the icon size from KItemListStyleOption for the width and height of the
[dolphin.git] / src / dolphinviewcontainer.cpp
index cc26198a0f4f333bbae4078c641fcbe5fcb6feea..dc51f85f066f3a1c08a55c583177f0aa7ac94a79 100644 (file)
@@ -372,6 +372,10 @@ void DolphinViewContainer::setUrl(const KUrl& newUrl)
 {
     if (newUrl != m_urlNavigator->locationUrl()) {
         m_urlNavigator->setLocationUrl(newUrl);
+    } else if (m_view->itemsCount() == 0) {
+        // Maybe a previously unmounted device has been mounted again.
+        // Let's reload the view to be safe (see https://bugs.kde.org/show_bug.cgi?id=161385).
+        m_view->reload();
     }
 
     #ifdef KActivities_FOUND