diff options
Diffstat (limited to 'src/webtab/webview.cpp')
-rw-r--r-- | src/webtab/webview.cpp | 14 |
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(); |