Changed: #1206 fixed bug when exception in sound system wouldnt close the settings group leading to inconsistent ini file

This commit is contained in:
aquiles 2011-08-13 19:11:15 +02:00
parent 990ca7ba3b
commit 33f68c018a

View file

@ -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;
} }