When an invalid protocol is used, reset the navigator location to the previous url

BUG: 413478
This commit is contained in:
Jan Paul Batrina 2020-10-03 13:15:34 +00:00 committed by Elvis Angelaccio
parent aa12f9ec1d
commit daa0fc341d

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