UI: Fix crash on settings update
This commit is contained in:
parent
b19ea6fe35
commit
fe079c03ab
@ -3536,7 +3536,8 @@ void OBSBasicSettings::SaveSettings()
|
|||||||
bool audioRestart = (ui->channelSetup->currentIndex() != channelIndex ||
|
bool audioRestart = (ui->channelSetup->currentIndex() != channelIndex ||
|
||||||
ui->sampleRate->currentIndex() != sampleRateIndex);
|
ui->sampleRate->currentIndex() != sampleRateIndex);
|
||||||
bool browserHWAccelChanged =
|
bool browserHWAccelChanged =
|
||||||
(ui->browserHWAccel->isChecked() != prevBrowserAccel);
|
(ui->browserHWAccel &&
|
||||||
|
ui->browserHWAccel->isChecked() != prevBrowserAccel);
|
||||||
|
|
||||||
if (langChanged || audioRestart || browserHWAccelChanged)
|
if (langChanged || audioRestart || browserHWAccelChanged)
|
||||||
restart = true;
|
restart = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user