diff options
Diffstat (limited to 'linden/indra/newview/llfloateractivespeakers.cpp')
-rw-r--r-- | linden/indra/newview/llfloateractivespeakers.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloateractivespeakers.cpp b/linden/indra/newview/llfloateractivespeakers.cpp index 8432d21..21b302a 100644 --- a/linden/indra/newview/llfloateractivespeakers.cpp +++ b/linden/indra/newview/llfloateractivespeakers.cpp | |||
@@ -486,11 +486,16 @@ void LLPanelActiveSpeakers::refreshSpeakers() | |||
486 | LLScrollListCell* name_cell = itemp->getColumn(1); | 486 | LLScrollListCell* name_cell = itemp->getColumn(1); |
487 | if (name_cell) | 487 | if (name_cell) |
488 | { | 488 | { |
489 | //FIXME: remove hard coding of font colors | ||
489 | if (speakerp->mStatus == LLSpeaker::STATUS_NOT_IN_CHANNEL) | 490 | if (speakerp->mStatus == LLSpeaker::STATUS_NOT_IN_CHANNEL) |
490 | { | 491 | { |
491 | // draw inactive speakers in gray | 492 | // draw inactive speakers in gray |
492 | name_cell->setColor(LLColor4::grey4); | 493 | name_cell->setColor(LLColor4::grey4); |
493 | } | 494 | } |
495 | else | ||
496 | { | ||
497 | name_cell->setColor(LLColor4::black); | ||
498 | } | ||
494 | 499 | ||
495 | LLString speaker_name; | 500 | LLString speaker_name; |
496 | if (speakerp->mDisplayName.empty()) | 501 | if (speakerp->mDisplayName.empty()) |
@@ -1294,6 +1299,19 @@ void LLActiveSpeakerMgr::updateSpeakerList() | |||
1294 | mVoiceChannel = LLVoiceChannel::getCurrentVoiceChannel(); | 1299 | mVoiceChannel = LLVoiceChannel::getCurrentVoiceChannel(); |
1295 | } | 1300 | } |
1296 | LLSpeakerMgr::updateSpeakerList(); | 1301 | LLSpeakerMgr::updateSpeakerList(); |
1302 | |||
1303 | // clean up text only speakers | ||
1304 | for (speaker_map_t::iterator speaker_it = mSpeakers.begin(); speaker_it != mSpeakers.end(); ++speaker_it) | ||
1305 | { | ||
1306 | LLUUID speaker_id = speaker_it->first; | ||
1307 | LLSpeaker* speakerp = speaker_it->second; | ||
1308 | if (speakerp->mStatus == LLSpeaker::STATUS_TEXT_ONLY) | ||
1309 | { | ||
1310 | // automatically flag text only speakers for removal | ||
1311 | speakerp->mStatus = LLSpeaker::STATUS_NOT_IN_CHANNEL; | ||
1312 | } | ||
1313 | } | ||
1314 | |||
1297 | } | 1315 | } |
1298 | 1316 | ||
1299 | 1317 | ||