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

hg/feature/gsoc2012-fabien
aquiles 13 years ago
parent 067c045855
commit 28c4623f27

@ -107,6 +107,9 @@ void CSoundSystem::init()
std::string mess = std::string("Unable to init sound :") + e.what();
nlwarning ("Init sound: %s", mess.c_str());
_AudioMixer = NULL;
QSettings *settings = Core::ICore::instance()->settings();
if (settings->group() == Constants::OBJECT_VIEWER_SECTION)
settings->endGroup();
return;
}

Loading…
Cancel
Save