summaryrefslogtreecommitdiff
path: root/src/webtab/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-06-07 01:10:36 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-06-07 01:10:36 +0200
commit8767b92a1027283562d33de783f9601f66f3d32f (patch)
treeaee519f5bbae9fe0c4b8fe6ff37183dd28ba8bb4 /src/webtab/webview.cpp
parentMove from about: to rekonq: protocol for our special links (diff)
downloadrekonq-8767b92a1027283562d33de783f9601f66f3d32f.tar.xz
Fix behavior on unloaded sites
- show url - reload with f5 BUG:319924 BUG:312928
Diffstat (limited to 'src/webtab/webview.cpp')
-rw-r--r--src/webtab/webview.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp
index 5a4a597b..e9d48f29 100644
--- a/src/webtab/webview.cpp
+++ b/src/webtab/webview.cpp
@@ -151,6 +151,20 @@ void WebView::load(const QNetworkRequest &req, QNetworkAccessManager::Operation
}
+void WebView::reload()
+{
+ // This is needed to reload empty url, eg when network is down and you
+ // tried to load an URL.
+ if (url().isEmpty())
+ {
+ load(page()->loadingUrl());
+ return;
+ }
+
+ KWebView::reload();
+}
+
+
void WebView::loadStarted()
{
hideAccessKeys();