Skip to content
Snippets Groups Projects
Commit cf8a1636 authored by callum's avatar callum
Browse files

SOCIAL-423 FIX Display name and username are wrong in My Profile tab

parent 8d2c4369
No related branches found
No related tags found
No related merge requests found
...@@ -628,7 +628,18 @@ void LLPanelAvatarProfile::processGroupProperties(const LLAvatarGroups* avatar_g ...@@ -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 ) void LLPanelAvatarProfile::got_full_name_callback( const LLUUID& id, const std::string& full_name, bool is_group )
{ {
LLStringUtil::format_map_t args; 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); std::string linden_name = getString("name_text_args", args);
getChild<LLUICtrl>("name_descr_text")->setValue(linden_name); getChild<LLUICtrl>("name_descr_text")->setValue(linden_name);
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
height="15" height="15"
layout="topleft" layout="topleft"
left_pad="10" left_pad="10"
name="name_descr_text" name="display_name_descr_text"
text_color="0.7 0.7 0.7 1.0" text_color="0.7 0.7 0.7 1.0"
top_delta="0" top_delta="0"
width="280" > width="280" >
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
height="15" height="15"
layout="topleft" layout="topleft"
left_delta="0" left_delta="0"
name="display_name_descr_text" name="name_descr_text"
text_color="0.4 0.4 0.4 1.0" text_color="0.4 0.4 0.4 1.0"
top_delta="20" top_delta="20"
width="280"> width="280">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment