mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 18:08:44 +00:00
Changed: #1206 fixed bug when exception in sound system wouldnt close the settings group leading to inconsistent ini file
This commit is contained in:
parent
067c045855
commit
28c4623f27
1 changed files with 3 additions and 0 deletions
|
@ -107,6 +107,9 @@ void CSoundSystem::init()
|
||||||
std::string mess = std::string("Unable to init sound :") + e.what();
|
std::string mess = std::string("Unable to init sound :") + e.what();
|
||||||
nlwarning ("Init sound: %s", mess.c_str());
|
nlwarning ("Init sound: %s", mess.c_str());
|
||||||
_AudioMixer = NULL;
|
_AudioMixer = NULL;
|
||||||
|
QSettings *settings = Core::ICore::instance()->settings();
|
||||||
|
if (settings->group() == Constants::OBJECT_VIEWER_SECTION)
|
||||||
|
settings->endGroup();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue