BUG: 170695
svn path=/trunk/KDE/kdebase/apps/; revision=868984
void DolphinMainWindow::changeUrl(const KUrl& url)
{
+ if (url.protocol().isEmpty()) {
+ // The URL navigator only checks for validity, not
+ // if the URL can be listed. An error message is
+ // shown due to DolphinViewContainer::restoreView().
+ return;
+ }
+
DolphinViewContainer* view = activeViewContainer();
if (view != 0) {
view->setUrl(url);
void DolphinViewContainer::restoreView(const KUrl& url)
{
- m_view->updateView(url, m_urlNavigator->savedRootUrl());
+ if (url.protocol().isEmpty()) {
+ // 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());
+ }
}
void DolphinViewContainer::saveRootUrl(const KUrl& url)