Browse Source

Revert "UI: Reset service selection to custom if name not found"

This reverts commit e55171f28c43277242d8b54184874de91ba2007d.
derrod 2 years ago
parent
commit
fb5d03130a
1 changed files with 5 additions and 4 deletions
  1. 5 4
      UI/window-basic-settings-stream.cpp

+ 5 - 4
UI/window-basic-settings-stream.cpp

@@ -140,10 +140,11 @@ void OBSBasicSettings::LoadStream1Settings()
 			QTStr("Basic.Settings.Stream.Custom.Password.ToolTip"));
 	} else {
 		int idx = ui->service->findText(service);
-		/* 29.1 crash workaround: Fall back to "Custom" if service not found. */
-		if (idx == -1)
-			idx = 0;
-
+		if (idx == -1) {
+			if (service && *service)
+				ui->service->insertItem(1, service);
+			idx = 1;
+		}
 		ui->service->setCurrentIndex(idx);
 		lastServiceIdx = idx;