Merge pull request #2524 from kkartaltepe/settings-crash

UI: Fix crash on settings update
This commit is contained in:
Jim authored and GitHub committed 2020-03-20 19:03:29 -07:00
commit 6a609676ee
1 file changed
+2 -1
+2 -1
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;