]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinviewcontainer.cpp
Konq popupmenu fix: we don't show the "Create new" submenu over subdirs in an iconvie...
[dolphin.git] / src / dolphinviewcontainer.cpp
index 99ff253c2035b560aed27f7548896a8fa4101159..bed7d275848eee531f92b4813f5fe3be0bc3cb67 100644 (file)
@@ -350,7 +350,13 @@ void DolphinViewContainer::activate()
 
 void DolphinViewContainer::restoreView(const KUrl& url)
 {
-    m_view->updateView(url, m_urlNavigator->savedRootUrl());
+    if (KProtocolManager::supportsListing(url)) {
+        m_view->updateView(url, m_urlNavigator->savedRootUrl());
+    } else {
+        // The URL navigator only checks for validity, not
+        // if the URL can be listed. 
+        showErrorMessage(i18nc("@info:status", "Protocol not supported"));        
+    }
 }
 
 void DolphinViewContainer::saveRootUrl(const KUrl& url)