From 997866e0825dd9768557a378e716b201474f0aee Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Sat, 16 Oct 2010 19:37:19 +0530 Subject: i18n semantics and remove redundant if --- src/protocolhandler.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp index 4ac85738..88bcd5b2 100644 --- a/src/protocolhandler.cpp +++ b/src/protocolhandler.cpp @@ -155,12 +155,14 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra if(KProtocolInfo::isKnownProtocol(_url)) { new KRun(_url, Application::instance()->mainWindow()); - return true; //No need to delete KRun, it autodeletes it self + return true; //No need to delete KRun, it autodeletes itself } - else if(!KProtocolInfo::isKnownProtocol(_url)) + else { //Error Message, for those protocols even KDE cant handle - KMessageBox::error( Application::instance()->mainWindow(), i18n("rekonq cannot handle this URL, please use a appropriate application to open it")); + KMessageBox::error( Application::instance()->mainWindow(), i18nc("@info", + "rekonq can not handle this URL, + please use an appropriate application to open it")); return false; } -- cgit v1.2.1