summaryrefslogtreecommitdiff
path: root/indra/newview/llconversationview.cpp
diff options
context:
space:
mode:
authorMaximB ProductEngine <mberezhnoy@productengine.com>2012-11-19 09:08:02 +0200
committerMaximB ProductEngine <mberezhnoy@productengine.com>2012-11-19 09:08:02 +0200
commitf043bc32fd202de88d6823bb938128147ab4a04c (patch)
tree0b999c3fa031cc14a47206784138df54e675e035 /indra/newview/llconversationview.cpp
parent0cb67ec3762c1f1671fd01e331fe64a210098fd2 (diff)
CHUI-434 (Don't display phone icon and disable phone button when voice isn't enabled)
Diffstat (limited to 'indra/newview/llconversationview.cpp')
-rwxr-xr-xindra/newview/llconversationview.cpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/indra/newview/llconversationview.cpp b/indra/newview/llconversationview.cpp
index 4c52794e4c..b9d62e85c4 100755
--- a/indra/newview/llconversationview.cpp
+++ b/indra/newview/llconversationview.cpp
@@ -57,14 +57,11 @@ public:
virtual void onChange(EStatusType status, const std::string &channelURI, bool proximal)
{
- if (conversation
- && status != STATUS_JOINING
- && status != STATUS_LEFT_CHANNEL
- && LLVoiceClient::getInstance()->voiceEnabled()
- && LLVoiceClient::getInstance()->isVoiceWorking())
- {
- conversation->showVoiceIndicator();
- }
+ conversation->showVoiceIndicator(conversation
+ && status != STATUS_JOINING
+ && status != STATUS_LEFT_CHANNEL
+ && LLVoiceClient::getInstance()->voiceEnabled()
+ && LLVoiceClient::getInstance()->isVoiceWorking());
}
private:
@@ -288,12 +285,9 @@ LLConversationViewParticipant* LLConversationViewSession::findParticipant(const
return (iter == getItemsEnd() ? NULL : participant);
}
-void LLConversationViewSession::showVoiceIndicator()
+void LLConversationViewSession::showVoiceIndicator(bool visible)
{
- if (LLVoiceChannel::getCurrentVoiceChannel()->getSessionID().isNull())
- {
- mCallIconLayoutPanel->setVisible(true);
- }
+ mCallIconLayoutPanel->setVisible(visible && LLVoiceChannel::getCurrentVoiceChannel()->getSessionID().isNull());
}
void LLConversationViewSession::refresh()