diff options
| -rw-r--r-- | src/dolphinviewcontainer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
