diff options
author | Armin Weatherwax | 2010-05-04 20:10:29 +0200 |
---|---|---|
committer | Armin Weatherwax | 2010-05-04 20:10:29 +0200 |
commit | 58ed680d530daf9852d00d33275594dc713ccdac (patch) | |
tree | 279628334309b655248d8544757cbced2ff1db0d /linden/indra | |
parent | replace ambiguous NULL pointers for g_object. (diff) | |
download | meta-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')
-rw-r--r-- | linden/indra/newview/llvoiceclient.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/llvoiceremotectrl.cpp | 6 | ||||
-rw-r--r-- | linden/indra/newview/llvoiceremotectrl.h | 1 |
3 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/newview/llvoiceclient.cpp b/linden/indra/newview/llvoiceclient.cpp index 2c46832..c0d73e7 100644 --- a/linden/indra/newview/llvoiceclient.cpp +++ b/linden/indra/newview/llvoiceclient.cpp | |||
@@ -1605,7 +1605,7 @@ void LLVoiceClient::stateMachine() | |||
1605 | if (count % num == 0) | 1605 | if (count % num == 0) |
1606 | { | 1606 | { |
1607 | LL_DEBUGS("Voice") << "region doesn't have ParcelVoiceInfoRequest capability. This is normal for a short time after teleporting, but bad if it persists for very long (" << count << ")." << LL_ENDL; | 1607 | LL_DEBUGS("Voice") << "region doesn't have ParcelVoiceInfoRequest capability. This is normal for a short time after teleporting, but bad if it persists for very long (" << count << ")." << LL_ENDL; |
1608 | if (num < 1000) | 1608 | if (num < 100) |
1609 | { | 1609 | { |
1610 | if( ++count2 == 10) | 1610 | if( ++count2 == 10) |
1611 | { | 1611 | { |
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 | ||
49 | LLVoiceRemoteCtrl::LLVoiceRemoteCtrl (const std::string& name) : LLPanel(name) | 49 | LLVoiceRemoteCtrl::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()) |
diff --git a/linden/indra/newview/llvoiceremotectrl.h b/linden/indra/newview/llvoiceremotectrl.h index 1f61459..6a2da78 100644 --- a/linden/indra/newview/llvoiceremotectrl.h +++ b/linden/indra/newview/llvoiceremotectrl.h | |||
@@ -59,6 +59,7 @@ protected: | |||
59 | LLButton* mTalkBtn; | 59 | LLButton* mTalkBtn; |
60 | LLButton* mTalkLockBtn; | 60 | LLButton* mTalkLockBtn; |
61 | LLButton* mSpeakersBtn; | 61 | LLButton* mSpeakersBtn; |
62 | bool mVoiceLastActive; | ||
62 | }; | 63 | }; |
63 | 64 | ||
64 | #endif // LL_LLVOICEREMOTECTRL_H | 65 | #endif // LL_LLVOICEREMOTECTRL_H |