diff options
Diffstat (limited to 'pacman-c++/client.cpp')
| -rw-r--r-- | pacman-c++/client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pacman-c++/client.cpp b/pacman-c++/client.cpp index 394b446..d885e49 100644 --- a/pacman-c++/client.cpp +++ b/pacman-c++/client.cpp | |||
| @@ -26,7 +26,7 @@ void Client::createMenu() | |||
| 26 | toggleSound->setAlignment(Qt::AlignBottom); | 26 | toggleSound->setAlignment(Qt::AlignBottom); |
| 27 | 27 | ||
| 28 | bool sound = AudioManager::self()->isWorking(); | 28 | bool sound = AudioManager::self()->isWorking(); |
| 29 | bool muted = !(sound && m_settings->value("muted", false).toBool()); | 29 | bool muted = !sound || m_settings->value("muted", false).toBool(); |
| 30 | AudioManager::self()->setMuted(muted); | 30 | AudioManager::self()->setMuted(muted); |
| 31 | 31 | ||
| 32 | QImage img(muted ? ":/soundoff" : ":/soundon"); | 32 | QImage img(muted ? ":/soundoff" : ":/soundon"); |
