aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvoiceremotectrl.cpp
diff options
context:
space:
mode:
authorArmin Weatherwax2010-05-04 20:10:29 +0200
committerArmin Weatherwax2010-05-04 20:10:29 +0200
commit58ed680d530daf9852d00d33275594dc713ccdac (patch)
tree279628334309b655248d8544757cbced2ff1db0d /linden/indra/newview/llvoiceremotectrl.cpp
parentreplace ambiguous NULL pointers for g_object. (diff)
downloadmeta-impy-58ed680d530daf9852d00d33275594dc713ccdac.zip
meta-impy-58ed680d530daf9852d00d33275594dc713ccdac.tar.gz
meta-impy-58ed680d530daf9852d00d33275594dc713ccdac.tar.bz2
meta-impy-58ed680d530daf9852d00d33275594dc713ccdac.tar.xz
disable speakers button and hide floateractivespeakers if voice not enabled.
Diffstat (limited to 'linden/indra/newview/llvoiceremotectrl.cpp')
-rw-r--r--linden/indra/newview/llvoiceremotectrl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/linden/indra/newview/llvoiceremotectrl.cpp b/linden/indra/newview/llvoiceremotectrl.cpp
index 73d8c10..1681e96 100644
--- a/linden/indra/newview/llvoiceremotectrl.cpp
+++ b/linden/indra/newview/llvoiceremotectrl.cpp
@@ -48,6 +48,7 @@
48 48
49LLVoiceRemoteCtrl::LLVoiceRemoteCtrl (const std::string& name) : LLPanel(name) 49LLVoiceRemoteCtrl::LLVoiceRemoteCtrl (const std::string& name) : LLPanel(name)
50{ 50{
51 mVoiceLastActive = false;
51 setIsChrome(TRUE); 52 setIsChrome(TRUE);
52 53
53 if (gSavedSettings.getBOOL("ShowVoiceChannelPopup")) 54 if (gSavedSettings.getBOOL("ShowVoiceChannelPopup"))
@@ -107,6 +108,11 @@ void LLVoiceRemoteCtrl::draw()
107 108
108 mTalkBtn->setEnabled(voice_active); 109 mTalkBtn->setEnabled(voice_active);
109 mTalkLockBtn->setEnabled(voice_active); 110 mTalkLockBtn->setEnabled(voice_active);
111 mSpeakersBtn->setEnabled(voice_active);
112
113 if (!voice_active && mVoiceLastActive)
114 LLFloaterActiveSpeakers::getInstance()->onClose(false);
115 mVoiceLastActive = voice_active;
110 116
111 // propagate ptt state to button display, 117 // propagate ptt state to button display,
112 if (!mTalkBtn->hasMouseCapture()) 118 if (!mTalkBtn->hasMouseCapture())