mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
don't call QAudioOutput constructor unless sound is enabled
This commit is contained in:
parent
81d7c08f08
commit
8f6de6637f
4 changed files with 28 additions and 11 deletions
|
|
@ -191,6 +191,7 @@ void SettingsCache::setSoundEnabled(int _soundEnabled)
|
|||
{
|
||||
soundEnabled = _soundEnabled;
|
||||
settings->setValue("sound/enabled", soundEnabled);
|
||||
emit soundEnabledChanged();
|
||||
}
|
||||
|
||||
void SettingsCache::setSoundPath(const QString &_soundPath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue