UI: Fix crash on settings update

This commit is contained in:
Kurt Kartaltepe committed 2020-03-19 20:36:55 -07:00
1 parent b19ea6fe35
commit fe079c03ab
1 file changed
+2 -1
+2 -1
View File
@@ -3536,7 +3536,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;