Merge pull request #2524 from kkartaltepe/settings-crash

UI: Fix crash on settings update
This commit is contained in:
Jim 2020-03-20 19:03:29 -07:00 committed by GitHub
commit 6a609676ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3537,7 +3537,8 @@ void OBSBasicSettings::SaveSettings()
bool audioRestart = (ui->channelSetup->currentIndex() != channelIndex ||
ui->sampleRate->currentIndex() != sampleRateIndex);
bool browserHWAccelChanged =
(ui->browserHWAccel->isChecked() != prevBrowserAccel);
(ui->browserHWAccel &&
ui->browserHWAccel->isChecked() != prevBrowserAccel);
if (langChanged || audioRestart || browserHWAccelChanged)
restart = true;