summaryrefslogtreecommitdiff
path: root/indra/newview/llcallfloater.cpp
diff options
context:
space:
mode:
authorAndrew Dyukov <adyukov@productengine.com>2009-12-02 10:41:53 +0200
committerAndrew Dyukov <adyukov@productengine.com>2009-12-02 10:41:53 +0200
commit09d6eeceb8367879c0ce158e20eae9732909596c (patch)
tree047eb53d15333a032858dc47192cb4ab50331dc0 /indra/newview/llcallfloater.cpp
parent06d5706cdcc690c713dcd832a878e830afbb4a59 (diff)
Minor changes to EXT-2986 (Add "Leave Call" button in Voice Control Panel
for all voice chats except nearby) implementation. --HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llcallfloater.cpp')
-rw-r--r--indra/newview/llcallfloater.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llcallfloater.cpp b/indra/newview/llcallfloater.cpp
index d6ae4603b4..d82c088997 100644
--- a/indra/newview/llcallfloater.cpp
+++ b/indra/newview/llcallfloater.cpp
@@ -96,7 +96,9 @@ void LLCallFloater::leaveCall()
{
LLVoiceChannel* voice_channel = LLVoiceChannel::getCurrentVoiceChannel();
if (voice_channel && voice_channel->isActive())
+ {
voice_channel->deactivate();
+ }
}
void LLCallFloater::updateSession()
@@ -150,8 +152,8 @@ void LLCallFloater::updateSession()
updateTitle();
//hide "Leave Call" button for nearby chat
- bool isLocalChat = mVoiceType == VC_LOCAL_CHAT;
- childSetVisible("leave_btn_panel", !isLocalChat);
+ bool is_local_chat = mVoiceType == VC_LOCAL_CHAT;
+ childSetVisible("leave_btn_panel", !is_local_chat);
refreshPartisipantList();
}