diff options
| author | Kai Uwe Broulik <[email protected]> | 2023-10-20 14:19:02 +0200 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2023-10-22 09:11:56 +0000 |
| commit | 2de810e6c3cd3721e7f0b85e75ae79ee4f14e8e7 (patch) | |
| tree | 2bd295a4782cbec2c260f46f2ccfe15dae005369 /src/dolphinviewcontainer.cpp | |
| parent | 7379cf59f69981423ef7bd106a8e0e6d5c9e610e (diff) | |
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.
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
| -rw-r--r-- | src/dolphinviewcontainer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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(); } } |
