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:
parent
d9d8106fb6
commit
61c4cbe1f4
1 changed files with 1 additions and 1 deletions
|
@ -928,7 +928,7 @@ void OptionsDialog::apply() {
|
||||||
|
|
||||||
ConfMan.setBool("subtitles", subtitles, _domain);
|
ConfMan.setBool("subtitles", subtitles, _domain);
|
||||||
ConfMan.setBool("speech_mute", speech_mute, _domain);
|
ConfMan.setBool("speech_mute", speech_mute, _domain);
|
||||||
} else {
|
} else if (!_domain.empty()) {
|
||||||
ConfMan.removeKey("subtitles", _domain);
|
ConfMan.removeKey("subtitles", _domain);
|
||||||
ConfMan.removeKey("speech_mute", _domain);
|
ConfMan.removeKey("speech_mute", _domain);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue