]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Mention invalid protocol name
authorKai Uwe Broulik <kde@privat.broulik.de>
Fri, 20 Oct 2023 12:19:02 +0000 (14:19 +0200)
committerKai Uwe Broulik <kde@privat.broulik.de>
Sun, 22 Oct 2023 09:11:56 +0000 (09:11 +0000)
Especially when clicking on an archive which redirects to a special
KIO worker, it can be handy to see the actual protocol name.

src/dolphinviewcontainer.cpp

index 5b2a318d679f2e299b9a5c20166941aad7f61c68..85e7dc2baea8a8a39a38da41f48fa1742aef8d2a 100644 (file)
@@ -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();
     }
 }