summaryrefslogtreecommitdiff
path: root/src/webenginequick/api/qtwebengineglobal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webenginequick/api/qtwebengineglobal.cpp')
-rw-r--r--src/webenginequick/api/qtwebengineglobal.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/webenginequick/api/qtwebengineglobal.cpp b/src/webenginequick/api/qtwebengineglobal.cpp
index 825805888..7d2b91e90 100644
--- a/src/webenginequick/api/qtwebengineglobal.cpp
+++ b/src/webenginequick/api/qtwebengineglobal.cpp
@@ -73,8 +73,7 @@ namespace QtWebEngine {
*/
void initialize()
{
- QCoreApplication *app = QCoreApplication::instance();
- if (app) {
+ if (!QCoreApplication::startingUp()) {
qWarning("QtWebEngine::initialize() called with QCoreApplication object already created and should be call before. "\
"This is depreciated and may fail in the future.");
QtWebEngineCore::initialize();