Commit 6b7789e0 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Alert user if a bookmark's Url is not supported/understood.

CCBUG: 203263

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1046547
parent 7cd04435
......@@ -273,6 +273,13 @@ void SessionController::openUrl( const KUrl& url )
//TODO Implement handling for other Url types
QString detailedMessage = i18n("This bookmark is using an Url that is not understood.");
QString detailedInfo = url.prettyUrl();
if (!(url.protocol()).isEmpty())
detailedInfo.append(QString(i18n("\n\nProtocol: ")) + url.protocol());
KMessageBox::detailedSorry(_view->window(), detailedMessage, detailedInfo);
kWarning(1211) << "Unable to open bookmark at url" << url << ", I do not know"
<< " how to handle the protocol " << url.protocol();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment