浏览代码

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.
jp9000 6 年之前
父节点
当前提交
0e4bef09f4
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      UI/window-basic-main.cpp

+ 3 - 1
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,