From 817dcc4e4493fb89c6d52b5e5ce1548b6a047d08 Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 10 Apr 2011 21:34:29 +0200 Subject: - first round of coding cleanup - small sound fix --- pacman-c++/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pacman-c++/client.cpp') 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() toggleSound->setAlignment(Qt::AlignBottom); bool sound = AudioManager::self()->isWorking(); - bool muted = !(sound && m_settings->value("muted", false).toBool()); + bool muted = !sound || m_settings->value("muted", false).toBool(); AudioManager::self()->setMuted(muted); QImage img(muted ? ":/soundoff" : ":/soundon"); -- cgit v1.2.3