From 81a89e689fb36bd24b47c5806d09438e3d82ece3 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 17 Feb 2021 03:31:06 -0800 Subject: [PATCH] UI: Fix output resolution not properly changing Fixes a bug where the output resolution wouldn't change when using a service that uses the "supported resolutions" limitation. When switching to a non-editable combo box, the signal used to detect whether the combo box has had its value changed wouldn't work anymore because it was the signal explicitly used for editable combos. So, to fix, just reapply the normal combo box signal to detect when the value has been changed. Fixes obsproject/obs-studio#4124 --- UI/window-basic-settings-stream.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/window-basic-settings-stream.cpp b/UI/window-basic-settings-stream.cpp index 42e49ea1b..af25a35cb 100644 --- a/UI/window-basic-settings-stream.cpp +++ b/UI/window-basic-settings-stream.cpp @@ -995,6 +995,9 @@ void OBSBasicSettings::UpdateResFPSLimits() if (res_count) { ui->outputResolution->clear(); ui->outputResolution->setEditable(false); + HookWidget(ui->outputResolution, + SIGNAL(currentIndexChanged(int)), + SLOT(VideoChangedResolution())); int new_res_index = -1; -- GitLab