summaryrefslogtreecommitdiffstats
path: root/src/webview/qwebview.cpp
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@theqtcompany.com>2015-06-19 16:25:45 +0200
committerChristian Stromme <christian.stromme@theqtcompany.com>2015-06-22 11:23:09 +0000
commit1e29426e4ce170b77fc9c6165126dadd44ec7614 (patch)
treed4e92eb8c9798e7b6ac5675ef29a31359fa9c8f0 /src/webview/qwebview.cpp
parentbec2a48e0159f4b5a5fec0a893d2ed4a161bcf37 (diff)
Reset progress to 0 when loading fails.
Change-Id: Id046571bd3e115904491465f8693338b40a336ac Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/webview/qwebview.cpp')
-rw-r--r--src/webview/qwebview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/webview/qwebview.cpp b/src/webview/qwebview.cpp
index 8efceff..8a98df0 100644
--- a/src/webview/qwebview.cpp
+++ b/src/webview/qwebview.cpp
@@ -200,6 +200,9 @@ void QWebView::onLoadProgressChanged(int progress)
void QWebView::onLoadingChanged(const QWebViewLoadRequestPrivate &loadRequest)
{
+ if (loadRequest.m_status == QWebView::LoadFailedStatus)
+ m_progress = 0;
+
onUrlChanged(loadRequest.m_url);
Q_EMIT loadingChanged(loadRequest);