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)