summaryrefslogtreecommitdiff
path: root/indra/newview/llcallfloater.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llcallfloater.cpp')
-rw-r--r--indra/newview/llcallfloater.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/newview/llcallfloater.cpp b/indra/newview/llcallfloater.cpp
index b41f962ffa..46432a4953 100644
--- a/indra/newview/llcallfloater.cpp
+++ b/indra/newview/llcallfloater.cpp
@@ -119,6 +119,7 @@ void LLCallFloater::updateSession()
lldebugs << "Set DEFAULT speaker manager" << llendl;
}
+ updateTitle();
refreshPartisipantList();
}
@@ -135,4 +136,20 @@ void LLCallFloater::onCurrentChannelChanged(const LLUUID& /*session_id*/)
{
updateSession();
}
+
+void LLCallFloater::updateTitle()
+{
+ LLVoiceChannel* voice_channel = LLVoiceChannel::getCurrentVoiceChannel();
+ if (NULL == voice_channel) return;
+
+ std::string title = voice_channel->getSessionName();
+
+ if (LLLocalSpeakerMgr::getInstance() == mSpeakerManager)
+ {
+ title = getString("title_nearby");
+ }
+
+ // *TODO: mantipov: update code to use title from xml for other chat types
+ setTitle(title);
+}
//EOF