summaryrefslogtreecommitdiff
path: root/indra/newview/llimview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llimview.cpp')
-rw-r--r--indra/newview/llimview.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp
index 6ad483a2f1..e3902bffa0 100644
--- a/indra/newview/llimview.cpp
+++ b/indra/newview/llimview.cpp
@@ -69,7 +69,6 @@
#include "llviewerwindow.h"
#include "llnotify.h"
#include "llviewerregion.h"
-#include "llviewertexteditor.h"
#include "lltrans.h"
#include "llfirstuse.h"
@@ -847,8 +846,13 @@ BOOL LLIncomingCallDialog::postBuild()
EInstantMessage type = (EInstantMessage)mPayload["type"].asInteger();
std::string call_type = getString("VoiceInviteP2P");
- std::string caller_name = mPayload["caller_name"].asString() + " ";
- setTitle(caller_name + call_type);
+ std::string caller_name = mPayload["caller_name"].asString();
+ if (caller_name == "anonymous")
+ {
+ caller_name = getString("anonymous");
+ }
+
+ setTitle(caller_name + " " + call_type);
// If it is not a P2P invite, then it's an AdHoc invite
if ( type != IM_SESSION_P2P_INVITE )
@@ -856,8 +860,8 @@ BOOL LLIncomingCallDialog::postBuild()
call_type = getString("VoiceInviteAdHoc");
}
- LLViewerTextEditor* text = getChild<LLViewerTextEditor>("caller name");
- text->setEmbeddedText(caller_name + call_type);
+ LLUICtrl* caller_name_widget = getChild<LLUICtrl>("caller name");
+ caller_name_widget->setValue(caller_name + " " + call_type);
LLAvatarIconCtrl* icon = getChild<LLAvatarIconCtrl>("avatar_icon");
icon->setValue(caller_id);