diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-04-20 06:03:12 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-04-20 06:04:17 +0200 |
commit | d8e5bed685471b2ba0e6caf493b34b216110290a (patch) | |
tree | 7f503381217f59ec680f141babd4f07a878ecad1 /src | |
parent | Really fix Upper case urls management (diff) | |
download | rekonq-d8e5bed685471b2ba0e6caf493b34b216110290a.tar.xz |
Fix apturl handling (workaround)
Backported from master branch
Diffstat (limited to 'src')
-rw-r--r-- | src/protocolhandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp index bade99cb..c63c37af 100644 --- a/src/protocolhandler.cpp +++ b/src/protocolhandler.cpp @@ -176,6 +176,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; |