X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/e1d88c4d69ba0fb38951954dceab937741528eab..96ba990d865b2dfb966961061ba5154dcd3187b4:/src/dolphinviewcontainer.cpp diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index e7c571294..c8fc757ba 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -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