未验证 提交 6a609676 编写于 作者: J Jim 提交者: GitHub

Merge pull request #2524 from kkartaltepe/settings-crash

UI: Fix crash on settings update
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册