From a9987de97f6d1904497316c4b93a0e56ee675c83 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 1 Jun 2010 17:06:49 +0200 Subject: Fix error reporting BUG:239040 --- src/webpage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/webpage.cpp b/src/webpage.cpp index 4a8c8b6b..c6e9c06b 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -537,6 +537,8 @@ void WebPage::manageNetworkErrors(QNetworkReply *reply) { mainFrame()->setHtml(errorPage(reply)); _isOnRekonqPage = true; + Application::instance()->mainWindow()->mainView()->urlBar()->setQUrl(_loadingUrl); + Application::instance()->mainWindow()->updateActions(); } break; @@ -560,7 +562,7 @@ QString WebPage::errorPage(QNetworkReply *reply) return QString("Couldn't open the rekonqinfo.html file"); } - QString title = i18n("Error loading: %1", reply->url().path()); + QString title = i18n("Error loading: %1", reply->url().toString()); QString urlString = reply->url().toString(QUrl::RemoveUserInfo | QUrl::RemoveQuery); QString iconPath = QString("file://") + KIconLoader::global()->iconPath("dialog-warning" , KIconLoader::Small); -- cgit v1.2.1