aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelaudiovolume.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpanelaudiovolume.cpp')
-rw-r--r--linden/indra/newview/llpanelaudiovolume.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/linden/indra/newview/llpanelaudiovolume.cpp b/linden/indra/newview/llpanelaudiovolume.cpp
index 5045e8f..bb10f80 100644
--- a/linden/indra/newview/llpanelaudiovolume.cpp
+++ b/linden/indra/newview/llpanelaudiovolume.cpp
@@ -67,8 +67,9 @@ LLPanelAudioVolume::~LLPanelAudioVolume ()
67// 67//
68void LLPanelAudioVolume::draw() 68void LLPanelAudioVolume::draw()
69{ 69{
70 BOOL mute = gSavedSettings.getBOOL("MuteAudio"); 70
71 bool enable = mute ? false : true; 71 static BOOL* sMuteAudio = rebind_llcontrol<BOOL>("MuteAudio", &gSavedSettings, true);
72 bool enable = (*sMuteAudio) ? false : true;
72 childSetEnabled("Music Volume", enable); 73 childSetEnabled("Music Volume", enable);
73 childSetEnabled("Media Volume", enable); 74 childSetEnabled("Media Volume", enable);
74 childSetEnabled("Voice Volume", enable); 75 childSetEnabled("Voice Volume", enable);