summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-25 02:10:23 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-25 02:10:23 +0200
commit343b2883d739ca493376fae3acc90539e35493ec (patch)
tree8c3762d32e3c80df536f4989e48325105fec60d3 /src
parentShow actual page source (diff)
downloadrekonq-343b2883d739ca493376fae3acc90539e35493ec.tar.xz
Ignore unknown network errors, at least for now.. ;)
BUG:236816
Diffstat (limited to 'src')
-rw-r--r--src/webpage.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 507263cc..a9558b32 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -402,24 +402,28 @@ void WebPage::manageNetworkErrors(QNetworkReply *reply)
}
break;
+ case QNetworkReply::OperationCanceledError: // operation canceled via abort() or close() calls
+ // ignore this..
+ return;
+
case QNetworkReply::ContentAccessDenied: // access to remote content denied (similar to HTTP error 401)
kDebug() << "We (hopefully) are managing this through the adblock :)";
break;
case QNetworkReply::UnknownNetworkError: // unknown network-related error detected
- if (_protHandler.postHandling(reply->request(), mainFrame()))
- break;
+ _protHandler.postHandling(reply->request(), mainFrame());
+ return;
case QNetworkReply::ConnectionRefusedError: // remote server refused connection
case QNetworkReply::HostNotFoundError: // invalid hostname
case QNetworkReply::TimeoutError: // connection time out
- case QNetworkReply::OperationCanceledError: // operation canceled via abort() or close() calls
case QNetworkReply::ProxyNotFoundError: // invalid proxy hostname
case QNetworkReply::ContentOperationNotPermittedError: // operation requested on remote content not permitted
case QNetworkReply::ContentNotFoundError: // remote content not found on server (similar to HTTP error 404)
case QNetworkReply::ProtocolUnknownError: // Unknown protocol
case QNetworkReply::ProtocolInvalidOperationError: // requested operation is invalid for this protocol
+ kDebug() << "ERROR " << reply->error() << ": " << reply->errorString();
if (reply->url() == _loadingUrl)
{
mainFrame()->setHtml(errorPage(reply));