Commit e68d1ad0 authored by Kai Koehne's avatar Kai Koehne
Browse files

Force creation of default WebEngineProfile


Make sure that the default QWebEngineProfile is created first. This
creates the default WebEngineContext, which in turn initializes global
things like AtExitManager.

Task-number: QTBUG-49557
Change-Id: I9e8f6bd24edd7f4c7e8bb38d91a2c09631824828
Reviewed-by: default avatarMichael Brüning <michael.bruning@theqtcompany.com>
Showing with 2 additions and 0 deletions
...@@ -165,6 +165,8 @@ void QQuickWebEngineProfilePrivate::downloadUpdated(const DownloadItemInfo &info ...@@ -165,6 +165,8 @@ void QQuickWebEngineProfilePrivate::downloadUpdated(const DownloadItemInfo &info
QQuickWebEngineProfile::QQuickWebEngineProfile() QQuickWebEngineProfile::QQuickWebEngineProfile()
: d_ptr(new QQuickWebEngineProfilePrivate(new BrowserContextAdapter(false))) : d_ptr(new QQuickWebEngineProfilePrivate(new BrowserContextAdapter(false)))
{ {
// Sets up the global WebEngineContext
QQuickWebEngineProfile::defaultProfile();
d_ptr->q_ptr = this; d_ptr->q_ptr = this;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment