1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

WebView: Don't change m_progress when loading finished

QtWebEngine may emit loadProgress signal even after loadFinished
was already emitted.

Closes #2222
This commit is contained in:
David Rosca 2017-03-18 16:00:57 +01:00
parent 7112149670
commit b61b4aca67

View File

@ -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)