Close the window using the invokeMethod to not block
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com> (cherry picked from commit 9601fbf2d5b36d3609cce6b1a3b458db0d170531)
This commit is contained in:
parent
04e1a97d59
commit
984daa450b
@ -1489,7 +1489,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();
|
||||||
|
Loading…
Reference in New Issue
Block a user