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.
This commit is contained in:
jp9000 2019-02-20 15:33:47 -08:00
parent 33e4de5be6
commit 0e4bef09f4

View File

@ -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,