Satisfy Issue 1932: Totalgroup member count

This commit is contained in:
Inusaito Sayori
2015-05-25 15:37:31 -04:00
parent 5be98205d4
commit dcb349d55d
8 changed files with 15 additions and 9 deletions

View File

@@ -60,6 +60,7 @@
#include "llviewerwindow.h"
#include "hippogridmanager.h"
#include <boost/lexical_cast.hpp>
// consts
const S32 MATURE_CONTENT = 1;
@@ -267,6 +268,11 @@ BOOL LLPanelGroupGeneral::postBuild()
mGroupName->setVisible(FALSE);
}
std::string member_count(LLTrans::getString("LoadingData"));
if (LLGroupMgrGroupData* gdatap = LLGroupMgr::getInstance()->getGroupData(mGroupID))
member_count = boost::lexical_cast<std::string>(gdatap->mMembers.size());
getChild<LLUICtrl>("text_owners_and_visible_members")->setTextArg("[COUNT]", member_count);
return LLPanelGroupTab::postBuild();
}
@@ -833,6 +839,8 @@ void LLPanelGroupGeneral::updateMembers()
}
}
getChild<LLUICtrl>("text_owners_and_visible_members")->setTextArg("[COUNT]", boost::lexical_cast<std::string>(gdatap->mMembers.size()));
if (mMemberProgress == gdatap->mMembers.end())
{
lldebugs << " member list completed." << llendl;