summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRohan Garg <rohangarg@kubuntu.org>2010-10-16 19:37:19 +0530
committerRohan Garg <rohangarg@kubuntu.org>2010-10-16 19:37:19 +0530
commit997866e0825dd9768557a378e716b201474f0aee (patch)
tree96b1e2916ef59992e4dc1667dc67d9c17966b5ab
parentBetter protocol resolution for URL bar (diff)
downloadrekonq-997866e0825dd9768557a378e716b201474f0aee.tar.xz
i18n semantics and remove redundant if
-rw-r--r--src/protocolhandler.cpp8
1 files 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;
}