summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-04-20 06:03:12 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-04-20 06:03:12 +0200
commit5786229da5c1ac791828b5d6b710d073f6bb9512 (patch)
tree4850d1f1da974adf46f45c221859dc15bf8326b7 /src
parentRemove tabbar.h and mainwindow.h Dependencies from webtab.cpp (diff)
downloadrekonq-5786229da5c1ac791828b5d6b710d073f6bb9512.tar.xz
Fix apturl handling (workaround)
Diffstat (limited to 'src')
-rw-r--r--src/protocolhandler.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp
index fb7ee936..a4b44f34 100644
--- a/src/protocolhandler.cpp
+++ b/src/protocolhandler.cpp
@@ -168,6 +168,15 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra
return true;
}
+ // "apt" handling
+ // NOTE: this is a stupid workaround to ensure apt protocol works
+ if (_url.protocol() == QL1S("apt"))
+ {
+ kDebug() << "APT URL: " << _url;
+ (void)new KRun(_url, rApp->mainWindow(), 0, _url.isLocalFile());
+ return true;
+ }
+
// let webkit try to load a known (or missing) protocol...
if (KProtocolInfo::isKnownProtocol(_url))
return false;