]> 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 89ed54aca167005c23abd87ea2604384c3135d90..bed7d275848eee531f92b4813f5fe3be0bc3cb67 100644 (file)
@@ -350,12 +350,12 @@ void DolphinViewContainer::activate()
 
 void DolphinViewContainer::restoreView(const KUrl& url)
 {
-    if (url.protocol().isEmpty()) {
+    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"));
-    } else {
-        m_view->updateView(url, m_urlNavigator->savedRootUrl());
+        showErrorMessage(i18nc("@info:status", "Protocol not supported"));        
     }
 }