From 46d696bde89c096739005f1c7237f27b8e51a9ee Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Thu, 9 Dec 2021 01:38:03 +0100 Subject: Minor. Fix context log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Log context before initialization as it can fail/crash and we do not see what failed. Change-Id: Ib47906c25bf8fb55c6c043ba5fadce9b354a87fc Reviewed-by: Michael BrĂ¼ning (cherry picked from commit 3ddc6f951120fcbde903e650245849bde554b455) Reviewed-by: Qt Cherry-pick Bot --- src/core/web_engine_context.cpp | 4 ++-- 1 file 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) -- cgit v1.2.3