Avatar Picker's list of friends should use the friends name system.
This commit is contained in:
@@ -895,11 +895,10 @@ bool LLCollectOnlineBuddies::operator()(const LLUUID& buddy_id, LLRelationship*
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const S32& friend_name_system();
|
||||||
bool LLCollectAllBuddies::operator()(const LLUUID& buddy_id, LLRelationship* buddy)
|
bool LLCollectAllBuddies::operator()(const LLUUID& buddy_id, LLRelationship* buddy)
|
||||||
{
|
{
|
||||||
LLAvatarName av_name;
|
LLAvatarNameCache::getPNSName(buddy_id, mFullName, friend_name_system());
|
||||||
LLAvatarNameCache::get(buddy_id, &av_name);
|
|
||||||
mFullName = av_name.mDisplayName;
|
|
||||||
buddy_map_t::value_type value(mFullName, buddy_id);
|
buddy_map_t::value_type value(mFullName, buddy_id);
|
||||||
if(buddy->isOnline())
|
if(buddy->isOnline())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -378,7 +378,7 @@ void LLFloaterAvatarPicker::populateFriend()
|
|||||||
}
|
}
|
||||||
for(it = collector.mOffline.begin(); it!=collector.mOffline.end(); it++)
|
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);
|
friends_scroller->sortByColumnIndex(0, TRUE);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ BOOL LLPanelFriends::postBuild()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const S32& friend_name_system()
|
const S32& friend_name_system()
|
||||||
{
|
{
|
||||||
static const LLCachedControl<S32> name_system("FriendNameSystem", 0);
|
static const LLCachedControl<S32> name_system("FriendNameSystem", 0);
|
||||||
return name_system;
|
return name_system;
|
||||||
|
|||||||
Reference in New Issue
Block a user