mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 09:39:15 +00:00
UI: Do not disable events when disabling codecs
This commit is contained in:
parent
b2e66bb401
commit
f3c075f19f
|
@ -5088,17 +5088,18 @@ void OBSBasicSettings::AdvOutRecCheckCodecs()
|
|||
QString streamAudioEncoder =
|
||||
ui->advOutAEncoder->currentData().toString();
|
||||
|
||||
/* Disable the signals to prevent AdvOutRecCheckWarnings to be called here. */
|
||||
ui->advOutRecEncoder->blockSignals(true);
|
||||
ui->advOutRecAEncoder->blockSignals(true);
|
||||
int oldVEncoderIdx = ui->advOutRecEncoder->currentIndex();
|
||||
int oldAEncoderIdx = ui->advOutRecAEncoder->currentIndex();
|
||||
DisableIncompatibleCodecs(ui->advOutRecEncoder, recFormat,
|
||||
recFormatName, streamEncoder);
|
||||
DisableIncompatibleCodecs(ui->advOutRecAEncoder, recFormat,
|
||||
recFormatName, streamAudioEncoder);
|
||||
ui->advOutRecEncoder->blockSignals(false);
|
||||
ui->advOutRecAEncoder->blockSignals(false);
|
||||
|
||||
AdvOutRecCheckWarnings();
|
||||
/* Only invoke AdvOutRecCheckWarnings() if it wouldn't already have
|
||||
* been triggered by one of the encoder selections being reset. */
|
||||
if (ui->advOutRecEncoder->currentIndex() == oldVEncoderIdx &&
|
||||
ui->advOutRecAEncoder->currentIndex() == oldAEncoderIdx)
|
||||
AdvOutRecCheckWarnings();
|
||||
}
|
||||
|
||||
#if defined(__APPLE__) && QT_VERSION < QT_VERSION_CHECK(6, 5, 1)
|
||||
|
|
Loading…
Reference in a new issue