From 0e4bef09f41fcd1b44b4ad9b13e4de672596e62b Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 20 Feb 2019 15:33:47 -0800 Subject: [PATCH] UI: Defer autoconfig to message queue The Auto-Configuration dialog was being created outside of the Qt message loop, which could cause a lockup with auth code. --- UI/window-basic-main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 7ce6463e2..3c6ab9c3f 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -1738,7 +1738,9 @@ void OBSBasic::OBSInit() msg); if (button == QMessageBox::Yes) { - on_autoConfigure_triggered(); + QMetaObject::invokeMethod(this, + "on_autoConfigure_triggered", + Qt::QueuedConnection); } else { msg = QTStr("Basic.FirstStartup.RunWizard.NoClicked"); OBSMessageBox::information(this,