From b61b4aca67cbe6c65339d9d3ccfc0ad3938e9983 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sat, 18 Mar 2017 16:00:57 +0100 Subject: [PATCH] WebView: Don't change m_progress when loading finished QtWebEngine may emit loadProgress signal even after loadFinished was already emitted. Closes #2222 --- src/lib/webengine/webview.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/webengine/webview.cpp b/src/lib/webengine/webview.cpp index 8ece42e74..d82f011aa 100644 --- a/src/lib/webengine/webview.cpp +++ b/src/lib/webengine/webview.cpp @@ -403,7 +403,9 @@ void WebView::slotLoadStarted() void WebView::slotLoadProgress(int progress) { - m_progress = progress; + if (m_progress < 100) { + m_progress = progress; + } } void WebView::slotLoadFinished(bool ok)