diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-07-04 18:46:58 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-07-04 18:46:58 +0200 |
commit | b66815cf34030ce5d57935eeaaac732ca69e2a78 (patch) | |
tree | e52c5c028badcf757559c3611845a093139f6ce2 /src/webpage.cpp | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-b66815cf34030ce5d57935eeaaac732ca69e2a78.tar.xz |
break an eventual "recall" loop
This is needed in case rekonq has been associated with something
it cannot properly handle
BUG: 299056
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp index b4f6e03d..c028ee58 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -368,6 +368,19 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) return; } + // NOTE + // This is needed in case rekonq has been associated with something it cannot + // properly handle (eg: xbel files, see BUG:299056). This way we break an eventual + // "recall" loop. + if (appService->exec().trimmed().startsWith() == QL1S("rekonq")) + { + isLocal + ? KMessageBox::sorry(view(), i18n("rekonq cannot properly handle this, sorry")) + : downloadUrl(reply->url()); + + return; + } + if (isLocal) { // Load outside local files |