]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinviewcontainer.cpp
When an invalid protocol is used, reset the navigator location to the previous url
[dolphin.git] / src / dolphinviewcontainer.cpp
index 3eaada941fe320e9453a506b39ecacc720301750..87c9769230d43ddef687a661f2bffb9281a8894c 100644 (file)
@@ -710,6 +710,7 @@ void DolphinViewContainer::slotUrlNavigatorLocationChanged(const QUrl& url)
         redirect(QUrl(), m_urlNavigator->locationUrl(1));
     } else {
         showMessage(i18nc("@info:status", "Invalid protocol"), Error);
+        m_urlNavigator->goBack();
     }
 }