Raise Progress events later on the event loop, to avoir possible crashes of WebView methods.

[GB.QT4.WEBKIT]
* BUG: Raise Progress evens later on the event loop, to avoir possible crashes of WebView methods.

[GB.QT5.WEBKIT]
* BUG: Raise Progress events later on the event loop, to avoir possible crashes of WebView methods.
This commit is contained in:
gambas 2020-01-07 02:05:12 +01:00
parent bf745644c7
commit 0ee8b98ca8

View file

@ -833,7 +833,7 @@ void CWebView::loadProgress(int progress)
return;
THIS->progress = v;
GB.Raise(THIS, EVENT_PROGRESS, 0);
GB.RaiseLater(THIS, EVENT_PROGRESS);
}
void CWebView::loadStarted()
@ -844,7 +844,7 @@ void CWebView::loadStarted()
THIS->progress = 0;
_network_access_manager_view = THIS;
GB.Raise(THIS, EVENT_PROGRESS, 0);
GB.RaiseLater(THIS, EVENT_PROGRESS);
}
void CWebView::selectionChanged()