summaryrefslogtreecommitdiff
path: root/indra/newview/llfloateravatarpicker.cpp
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2010-05-26 16:52:55 -0700
committerJames Cook <james@lindenlab.com>2010-05-26 16:52:55 -0700
commitcbbc5c75a9e604d34ead8ad8c041f78fe682c2c7 (patch)
tree5d57d5579e82b487b704ee5b4f90719e8fb9452b /indra/newview/llfloateravatarpicker.cpp
parenta41d414625b07c3aff9bdd7be487c5b908d6a49f (diff)
parentc5c13a92eb62e1e9927a9685d5433c040e6ef2ce (diff)
Merge
Diffstat (limited to 'indra/newview/llfloateravatarpicker.cpp')
-rw-r--r--indra/newview/llfloateravatarpicker.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/newview/llfloateravatarpicker.cpp b/indra/newview/llfloateravatarpicker.cpp
index a838746a56..d9c580320a 100644
--- a/indra/newview/llfloateravatarpicker.cpp
+++ b/indra/newview/llfloateravatarpicker.cpp
@@ -266,15 +266,20 @@ void LLFloaterAvatarPicker::populateNearMe()
if(av == gAgent.getID()) continue;
LLSD element;
element["id"] = av; // value
- std::string fullname;
- if(!gCacheName->getFullName(av, fullname))
+ LLAvatarName av_name;
+
+ if (!LLAvatarNameCache::get(av, &av_name))
{
+ element["columns"][0]["column"] = "name";
element["columns"][0]["value"] = LLCacheName::getDefaultName();
all_loaded = FALSE;
}
else
{
- element["columns"][0]["value"] = fullname;
+ element["columns"][0]["column"] = "name";
+ element["columns"][0]["value"] = av_name.mDisplayName;
+ element["columns"][1]["column"] = "username";
+ element["columns"][1]["value"] = av_name.mUsername;
}
near_me_scroller->addElement(element);
empty = FALSE;