diff options
author | Michal Klocek <michal.klocek@qt.io> | 2021-12-09 01:38:03 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-02-17 18:06:16 +0000 |
commit | 46d696bde89c096739005f1c7237f27b8e51a9ee (patch) | |
tree | eab8b361f6deec23bf6a36a6b619c24129e18e38 | |
parent | 5b926b1de82119908fe58b8d6396c661091b3d30 (diff) |
Minor. Fix context log
Log context before initialization as it can fail/crash and
we do not see what failed.
Change-Id: Ib47906c25bf8fb55c6c043ba5fadce9b354a87fc
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
(cherry picked from commit 3ddc6f951120fcbde903e650245849bde554b455)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/core/web_engine_context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index 3a17db218..1be28660d 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -778,6 +778,8 @@ WebEngineContext::WebEngineContext() parsedCommandLine->AppendSwitch(switches::kDisableGpu); } + logContext(glType, parsedCommandLine); + registerMainThreadFactories(); content::ContentMainParams contentMainParams(m_mainDelegate.get()); @@ -859,8 +861,6 @@ WebEngineContext::WebEngineContext() #endif content::WebUIControllerFactory::RegisterFactory(WebUIControllerFactoryQt::GetInstance()); - - logContext(glType, parsedCommandLine); } #if QT_CONFIG(webengine_printing_and_pdf) |