From dc1dcc4d59ad61b46365696db2ee0518574127bf Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 16 Oct 2010 19:27:25 +0200 Subject: Fixed i18n string, ftp handling back to rekonq --- src/protocolhandler.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/protocolhandler.cpp') diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp index 41e4f6d8..23743acf 100644 --- a/src/protocolhandler.cpp +++ b/src/protocolhandler.cpp @@ -76,10 +76,14 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra _url = request.url(); _frame = frame; - // rekonq can handle http/s and file browsing easily + // rekonq can handle http/s browsing easily if (_url.protocol() == QL1S("http") || _url.protocol() == QL1S("https") || _url.protocol() == QL1S("file")) return false; + // rekonq can handle file & ftp schemes, if you like,, + if (_url.protocol() == QL1S("ftp") || _url.protocol() == QL1S("file")) + return false; + // relative urls if (_url.isRelative()) return false; @@ -106,6 +110,9 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra return true; } + // NOTE + // handle here "custom" rekonq protocols + // "abp" handling if (_url.protocol() == QL1S("abp")) { @@ -161,8 +168,8 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra { //Error Message, for those protocols even KDE cant handle KMessageBox::error( Application::instance()->mainWindow(), i18nc("@info", - "rekonq can not handle this URL. - Please use an appropriate application to open it.")); + "rekonq can not handle this URL. \ + Please use an appropriate application to open it.")); return false; } -- cgit v1.2.1