summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/webpage.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index c859b5c9..32b785b4 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -521,7 +521,7 @@ void WebPage::manageNetworkErrors(QNetworkReply *reply)
break;
case QNetworkReply::UnknownNetworkError: // unknown network-related error detected
- _protHandler.postHandling(reply->request(), mainFrame());
+ _protHandler.postHandling(reply->request(), frame);
return;
case QNetworkReply::ConnectionRefusedError: // remote server refused connection
@@ -536,10 +536,13 @@ void WebPage::manageNetworkErrors(QNetworkReply *reply)
kDebug() << "ERROR " << reply->error() << ": " << reply->errorString();
if (reply->url() == _loadingUrl)
{
- mainFrame()->setHtml(errorPage(reply));
+ frame->setHtml(errorPage(reply));
+ if(isMainFrameRequest)
+ {
_isOnRekonqPage = true;
Application::instance()->mainWindow()->mainView()->urlBar()->setQUrl(_loadingUrl);
Application::instance()->mainWindow()->updateActions();
+ }
}
break;