summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2015-11-20 13:38:16 +0100
committerKai Koehne <kai.koehne@theqtcompany.com>2015-11-24 16:03:21 +0000
commite68d1ad06599eae1b0785263f3a0863701e6f1bc (patch)
treedf972eff0d9419434c51f6155905b67893971058 /src
parent8a1fadd42dafb8abc54b7e9529f7db1200c643fa (diff)
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: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/webengine/api/qquickwebengineprofile.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webengine/api/qquickwebengineprofile.cpp b/src/webengine/api/qquickwebengineprofile.cpp
index a678fe5fa..6e734cf66 100644
--- a/src/webengine/api/qquickwebengineprofile.cpp
+++ b/src/webengine/api/qquickwebengineprofile.cpp
@@ -165,6 +165,8 @@ void QQuickWebEngineProfilePrivate::downloadUpdated(const DownloadItemInfo &info
QQuickWebEngineProfile::QQuickWebEngineProfile()
: d_ptr(new QQuickWebEngineProfilePrivate(new BrowserContextAdapter(false)))
{
+ // Sets up the global WebEngineContext
+ QQuickWebEngineProfile::defaultProfile();
d_ptr->q_ptr = this;
}