From df04dd077b1044c5aa0335a09fbc3103e69aeb8c Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 9 May 2016 05:34:21 -0700 Subject: [PATCH] UI: Don't create encoder property views twice on load When settings are being loaded in to the settings dialog, it would recreate the encoder property views more than once unnecessarily. --- obs/window-basic-settings.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/obs/window-basic-settings.cpp b/obs/window-basic-settings.cpp index c6634a797..a9c8a4821 100644 --- a/obs/window-basic-settings.cpp +++ b/obs/window-basic-settings.cpp @@ -2703,6 +2703,9 @@ void OBSBasicSettings::on_advOutFFPathBrowse_clicked() void OBSBasicSettings::on_advOutEncoder_currentIndexChanged(int idx) { + if (loading) + return; + QString encoder = GetComboData(ui->advOutEncoder); delete streamEncoderProps; @@ -2715,6 +2718,9 @@ void OBSBasicSettings::on_advOutEncoder_currentIndexChanged(int idx) void OBSBasicSettings::on_advOutRecEncoder_currentIndexChanged(int idx) { + if (loading) + return; + ui->advOutRecUseRescale->setEnabled(idx > 0); ui->advOutRecRescaleContainer->setEnabled(idx > 0);