Fix friendlist counter in legacy contact list showing [COUNT] placeholder if agent has an empty friendlist

Tue, 16 Dec 2014 21:01:44 +0100

author
Ansariel
date
Tue, 16 Dec 2014 21:01:44 +0100
changeset 43084
ecef7399619e
parent 43083
85cdca1c482e
child 43085
e1540eb088d6

Fix friendlist counter in legacy contact list showing [COUNT] placeholder if agent has an empty friendlist

indra/newview/fsfloatercontacts.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/fsfloatercontacts.cpp	Tue Dec 16 15:45:44 2014 +0100
     1.2 +++ b/indra/newview/fsfloatercontacts.cpp	Tue Dec 16 21:01:44 2014 +0100
     1.3 @@ -143,6 +143,8 @@
     1.4  	mFriendsTab->childSetAction("add_btn",				boost::bind(&FSFloaterContacts::onAddFriendWizButtonClicked,	this));
     1.5  	mFriendsTab->setDefaultBtn("im_btn");
     1.6  
     1.7 +	mFriendsTab->getChild<LLTextBox>("friend_count")->setTextArg("COUNT", llformat("%d", mFriendsList->getItemCount()));
     1.8 +
     1.9  	mGroupsTab = getChild<LLPanel>(GROUP_TAB_NAME);
    1.10  	mGroupList = mGroupsTab->getChild<LLGroupList>("group_list");
    1.11  	mGroupList->setNoItemsMsg(getString("no_groups_msg"));

mercurial