GUI: fix broken GMM sound settings (regression from 44245eeb)

I would get an assert(!domName.empty())  whenever I use the ingame GMM sound settings, since that commit tries to remove keys even from the default/empty domain
This commit is contained in:
athrxx 2021-11-11 22:04:34 +01:00
parent d9d8106fb6
commit 61c4cbe1f4

View File

@ -928,7 +928,7 @@ void OptionsDialog::apply() {
ConfMan.setBool("subtitles", subtitles, _domain);
ConfMan.setBool("speech_mute", speech_mute, _domain);
} else {
} else if (!_domain.empty()) {
ConfMan.removeKey("subtitles", _domain);
ConfMan.removeKey("speech_mute", _domain);
}