┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinviewcontainer.cpp
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2013-10-07 09:31:45 +0200
committerFrank Reininghaus <[email protected]>2013-10-07 09:31:45 +0200
commitb4efdc620e8ce7571b45d7bfe22f30271871b9f9 (patch)
tree30f3c5e35a8f3c923c8a12b887d3421b465e3aa5 /src/dolphinviewcontainer.cpp
parent9f24c02a752584fc3ef82063d42262f91b493eae (diff)
parent5bfb5031a593fbd7e0a60bd8ca869671c712db9d (diff)
Merge remote-tracking branch 'origin/KDE/4.11'
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
-rw-r--r--src/dolphinviewcontainer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp
index cc26198a0..dc51f85f0 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