diff options
| author | manuel <manuel@mausz.at> | 2011-04-10 21:34:29 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-10 21:34:29 +0200 |
| commit | 817dcc4e4493fb89c6d52b5e5ce1548b6a047d08 (patch) | |
| tree | 81f0eea0617d05604e6636cb020509f9ec504e6e /pacman-c++/client.cpp | |
| parent | d0eafb0124a39eeda6c00595a943ce9811d589c4 (diff) | |
| download | foop-817dcc4e4493fb89c6d52b5e5ce1548b6a047d08.tar.gz foop-817dcc4e4493fb89c6d52b5e5ce1548b6a047d08.tar.bz2 foop-817dcc4e4493fb89c6d52b5e5ce1548b6a047d08.zip | |
- first round of coding cleanup
- small sound fix
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"); |
