]> cloud.milkyroute.net Git - dolphin.git/commitdiff
When an invalid protocol is used, reset the navigator location to the previous url
authorJan Paul Batrina <jpmbatrina01@gmail.com>
Sat, 3 Oct 2020 13:15:34 +0000 (13:15 +0000)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Mon, 5 Oct 2020 20:11:11 +0000 (20:11 +0000)
BUG: 413478

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();
     }
 }