From d5f3ddabd137fb641318ba0e292eefeacad0fcc6 Mon Sep 17 00:00:00 2001 From: derrod Date: Sat, 4 Sep 2021 06:44:55 +0200 Subject: [PATCH] UI: Restore auth reset when switching services Fixes #5236 --- UI/window-basic-settings-stream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/window-basic-settings-stream.cpp b/UI/window-basic-settings-stream.cpp index 4715eb7b7..3ee091909 100644 --- a/UI/window-basic-settings-stream.cpp +++ b/UI/window-basic-settings-stream.cpp @@ -470,6 +470,8 @@ void OBSBasicSettings::on_service_currentIndexChanged(int) ui->serverStackedWidget->setCurrentIndex(0); } + auth.reset(); + if (!main->auth) { return; } @@ -482,7 +484,6 @@ void OBSBasicSettings::on_service_currentIndexChanged(int) IsYouTubeService(service); #endif if (service_check) { - auth.reset(); auth = main->auth; OnAuthConnected(); }