diff options
author | Aimee Linden <aimee@lindenlab.com> | 2010-02-05 16:23:13 +0000 |
---|---|---|
committer | Aimee Linden <aimee@lindenlab.com> | 2010-02-05 16:23:13 +0000 |
commit | fc9099a0faef9f077b7986651f953998d6b9ac0c (patch) | |
tree | d192c0e25d250c20faae00519ce3decb0d099340 /indra/newview/lloutputmonitorctrl.cpp | |
parent | da44a78e6a899324ca9dad6bae6e0d6fc8b73dcb (diff) | |
parent | 166ac89de9bcf951103cbf2551a133ebe9e43035 (diff) |
merge
Diffstat (limited to 'indra/newview/lloutputmonitorctrl.cpp')
-rw-r--r-- | indra/newview/lloutputmonitorctrl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/lloutputmonitorctrl.cpp b/indra/newview/lloutputmonitorctrl.cpp index 388fdeea7a..9857e37bc3 100644 --- a/indra/newview/lloutputmonitorctrl.cpp +++ b/indra/newview/lloutputmonitorctrl.cpp @@ -249,6 +249,11 @@ void LLOutputMonitorCtrl::draw() void LLOutputMonitorCtrl::setSpeakerId(const LLUUID& speaker_id) { + if (speaker_id.isNull() && mSpeakerId.notNull()) + { + LLSpeakingIndicatorManager::unregisterSpeakingIndicator(mSpeakerId, this); + } + if (speaker_id.isNull() || speaker_id == mSpeakerId) return; if (mSpeakerId.notNull()) @@ -256,6 +261,7 @@ void LLOutputMonitorCtrl::setSpeakerId(const LLUUID& speaker_id) // Unregister previous registration to avoid crash. EXT-4782. LLSpeakingIndicatorManager::unregisterSpeakingIndicator(mSpeakerId, this); } + mSpeakerId = speaker_id; LLSpeakingIndicatorManager::registerSpeakingIndicator(mSpeakerId, this); |