UI: Fix crash on settings update

This commit is contained in:
Kurt Kartaltepe 2020-03-19 20:36:55 -07:00
parent b19ea6fe35
commit fe079c03ab

View File

@ -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;