From: Kai Uwe Broulik Date: Fri, 20 Oct 2023 12:19:02 +0000 (+0200) Subject: Mention invalid protocol name X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/2de810e6c3cd3721e7f0b85e75ae79ee4f14e8e7 Mention invalid protocol name Especially when clicking on an archive which redirects to a special KIO worker, it can be handy to see the actual protocol name. --- diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 5b2a318d6..85e7dc2ba 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -842,7 +842,11 @@ void DolphinViewContainer::slotUrlNavigatorLocationChanged(const QUrl &url) QDesktopServices::openUrl(url); redirect(QUrl(), m_urlNavigator->locationUrl(1)); } else { - showMessage(i18nc("@info:status", "Invalid protocol"), Error); + if (!url.scheme().isEmpty()) { + showMessage(i18nc("@info:status", "Invalid protocol '%1'", url.scheme()), Error); + } else { + showMessage(i18nc("@info:status", "Invalid protocol"), Error); + } m_urlNavigator->goBack(); } }