From 984daa450bbc53cec83b183472d83e022efc3739 Mon Sep 17 00:00:00 2001 From: Trial97 Date: Thu, 7 Nov 2024 14:45:14 +0200 Subject: [PATCH] Close the window using the invokeMethod to not block Signed-off-by: Trial97 (cherry picked from commit 9601fbf2d5b36d3609cce6b1a3b458db0d170531) --- launcher/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/Application.cpp b/launcher/Application.cpp index b64b9decb..474493f5a 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -1489,7 +1489,7 @@ void Application::controllerSucceeded() // on success, do... if (controller->instance()->settings()->get("AutoCloseConsole").toBool()) { if (extras.window) { - extras.window->close(); + QMetaObject::invokeMethod(extras.window, &QWidget::close, Qt::QueuedConnection); } } extras.controller.reset();