Avatar Picker's list of friends should use the friends name system.

This commit is contained in:
Inusaito Sayori
2014-10-18 15:05:10 -04:00
parent 0d300776ca
commit 341ca20529
3 changed files with 4 additions and 5 deletions

View File

@@ -895,11 +895,10 @@ bool LLCollectOnlineBuddies::operator()(const LLUUID& buddy_id, LLRelationship*
return true;
}
const S32& friend_name_system();
bool LLCollectAllBuddies::operator()(const LLUUID& buddy_id, LLRelationship* buddy)
{
LLAvatarName av_name;
LLAvatarNameCache::get(buddy_id, &av_name);
mFullName = av_name.mDisplayName;
LLAvatarNameCache::getPNSName(buddy_id, mFullName, friend_name_system());
buddy_map_t::value_type value(mFullName, buddy_id);
if(buddy->isOnline())
{

View File

@@ -378,7 +378,7 @@ void LLFloaterAvatarPicker::populateFriend()
}
for(it = collector.mOffline.begin(); it!=collector.mOffline.end(); it++)
{
friends_scroller->addStringUUIDItem(it->first, it->second);
friends_scroller->addStringUUIDItem(it->first, it->second);
}
friends_scroller->sortByColumnIndex(0, TRUE);
}

View File

@@ -322,7 +322,7 @@ BOOL LLPanelFriends::postBuild()
return true;
}
static const S32& friend_name_system()
const S32& friend_name_system()
{
static const LLCachedControl<S32> name_system("FriendNameSystem", 0);
return name_system;