Close the window using the invokeMethod to not block

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2024-11-07 14:45:14 +02:00
parent 6e55239cec
commit 9601fbf2d5
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318

View file

@ -1507,7 +1507,7 @@ void Application::controllerSucceeded()
// on success, do... // on success, do...
if (controller->instance()->settings()->get("AutoCloseConsole").toBool()) { if (controller->instance()->settings()->get("AutoCloseConsole").toBool()) {
if (extras.window) { if (extras.window) {
extras.window->close(); QMetaObject::invokeMethod(extras.window, &QWidget::close, Qt::QueuedConnection);
} }
} }
extras.controller.reset(); extras.controller.reset();