summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterimsessiontab.cpp
diff options
context:
space:
mode:
authorMaximB ProductEngine <mberezhnoy@productengine.com>2012-12-03 16:21:48 +0200
committerMaximB ProductEngine <mberezhnoy@productengine.com>2012-12-03 16:21:48 +0200
commitf888a3fd00ca32275ab2da6437cb011b3ab78f89 (patch)
tree0df7bc9ed5a133634d0d414a97f87cd99956d5b2 /indra/newview/llfloaterimsessiontab.cpp
parent168c1d5a85e8f4f4975ee4501e3dbb8f10d85334 (diff)
CHUI-556 (Tooltip on call button incorrect when call is active)
Diffstat (limited to 'indra/newview/llfloaterimsessiontab.cpp')
-rw-r--r--indra/newview/llfloaterimsessiontab.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llfloaterimsessiontab.cpp b/indra/newview/llfloaterimsessiontab.cpp
index d43381041b..08c2b951df 100644
--- a/indra/newview/llfloaterimsessiontab.cpp
+++ b/indra/newview/llfloaterimsessiontab.cpp
@@ -691,8 +691,13 @@ void LLFloaterIMSessionTab::processChatHistoryStyleUpdate()
void LLFloaterIMSessionTab::updateCallBtnState(bool callIsActive)
{
- getChild<LLButton>("voice_call_btn")->setImageOverlay(
+ LLButton* voiceButton = getChild<LLButton>("voice_call_btn");
+ voiceButton->setImageOverlay(
callIsActive? getString("call_btn_stop") : getString("call_btn_start"));
+
+ voiceButton->setToolTip(
+ callIsActive? getString("end_call_button_tooltip") : getString("start_call_button_tooltip"));
+
enableDisableCallBtn();
}