don't call QAudioOutput constructor unless sound is enabled

This commit is contained in:
Max-Wilhelm Bruker 2012-04-22 12:51:33 +02:00
parent 81d7c08f08
commit 8f6de6637f
4 changed files with 28 additions and 11 deletions

View file

@ -191,6 +191,7 @@ void SettingsCache::setSoundEnabled(int _soundEnabled)
{
soundEnabled = _soundEnabled;
settings->setValue("sound/enabled", soundEnabled);
emit soundEnabledChanged();
}
void SettingsCache::setSoundPath(const QString &_soundPath)