diff options
author | callum <none@none> | 2011-01-06 13:41:04 -0800 |
---|---|---|
committer | callum <none@none> | 2011-01-06 13:41:04 -0800 |
commit | cf8a16366ab764ceb02bfe013a40f731812e727c (patch) | |
tree | e3441c739e7d0674e7018aa7f5052d495454772c /indra/newview/llpanelavatar.cpp | |
parent | 8d2c4369dadc59e83a759f8e5fd62e823ca36a23 (diff) |
SOCIAL-423 FIX Display name and username are wrong in My Profile tab
Diffstat (limited to 'indra/newview/llpanelavatar.cpp')
-rw-r--r-- | indra/newview/llpanelavatar.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/newview/llpanelavatar.cpp b/indra/newview/llpanelavatar.cpp index 54e1fd8fbf..94b2340c93 100644 --- a/indra/newview/llpanelavatar.cpp +++ b/indra/newview/llpanelavatar.cpp @@ -628,7 +628,18 @@ void LLPanelAvatarProfile::processGroupProperties(const LLAvatarGroups* avatar_g void LLPanelAvatarProfile::got_full_name_callback( const LLUUID& id, const std::string& full_name, bool is_group )
{
LLStringUtil::format_map_t args;
- args["[NAME]"] = full_name;
+
+ std::string name; + if (LLAvatarNameCache::useDisplayNames()) + { + name = LLCacheName::buildUsername(full_name); + } + else + { + name = full_name; + }
+
+ args["[NAME]"] = name;
std::string linden_name = getString("name_text_args", args);
getChild<LLUICtrl>("name_descr_text")->setValue(linden_name);
|