aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgrouproles.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llpanelgrouproles.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/newview/llpanelgrouproles.cpp')
-rw-r--r--linden/indra/newview/llpanelgrouproles.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/linden/indra/newview/llpanelgrouproles.cpp b/linden/indra/newview/llpanelgrouproles.cpp
index 82f38e2..59ac556 100644
--- a/linden/indra/newview/llpanelgrouproles.cpp
+++ b/linden/indra/newview/llpanelgrouproles.cpp
@@ -185,6 +185,9 @@ BOOL LLPanelGroupRoles::postBuild()
185 185
186BOOL LLPanelGroupRoles::isVisibleByAgent(LLAgent* agentp) 186BOOL LLPanelGroupRoles::isVisibleByAgent(LLAgent* agentp)
187{ 187{
188 if (agentp->isGodlike())
189 return TRUE;
190
188 /* This power was removed to make group roles simpler 191 /* This power was removed to make group roles simpler
189 return agentp->hasPowerInGroup(mGroupID, 192 return agentp->hasPowerInGroup(mGroupID,
190 GP_ROLE_CREATE | 193 GP_ROLE_CREATE |
@@ -1117,7 +1120,10 @@ void LLPanelGroupMembersSubTab::handleMemberSelect()
1117 check->setCommitCallback(onRoleCheck); 1120 check->setCommitCallback(onRoleCheck);
1118 check->setCallbackUserData(this); 1121 check->setCallbackUserData(this);
1119 check->set( count > 0 ); 1122 check->set( count > 0 );
1120 check->setTentative(0 != count && selected_members.size() != count); 1123 check->setTentative(
1124 (0 != count)
1125 && (selected_members.size() !=
1126 (std::vector<LLUUID>::size_type)count));
1121 1127
1122 //NOTE: as of right now a user can break the group 1128 //NOTE: as of right now a user can break the group
1123 //by removing himself from a role if he is the 1129 //by removing himself from a role if he is the
@@ -1696,8 +1702,8 @@ void LLPanelGroupMembersSubTab::updateMembers()
1696 1702
1697 LLGroupMgrGroupData::member_iter end = gdatap->mMembers.end(); 1703 LLGroupMgrGroupData::member_iter end = gdatap->mMembers.end();
1698 1704
1699 char first[DB_FIRST_NAME_BUF_SIZE]; 1705 char first[DB_FIRST_NAME_BUF_SIZE]; /*Flawfinder: ignore*/
1700 char last[DB_LAST_NAME_BUF_SIZE]; 1706 char last[DB_LAST_NAME_BUF_SIZE]; /*Flawfinder: ignore*/
1701 S32 i = 0; 1707 S32 i = 0;
1702 for( ; mMemberProgress != end && i<UPDATE_MEMBERS_PER_FRAME; 1708 for( ; mMemberProgress != end && i<UPDATE_MEMBERS_PER_FRAME;
1703 ++mMemberProgress, ++i) 1709 ++mMemberProgress, ++i)
@@ -2012,7 +2018,7 @@ void LLPanelGroupRolesSubTab::update(LLGroupChange gc)
2012 2018
2013 mRolesList->sortByColumn("name", TRUE); 2019 mRolesList->sortByColumn("name", TRUE);
2014 2020
2015 if ( (gdatap->mRoles.size() < MAX_ROLES) 2021 if ( (gdatap->mRoles.size() < (U32)MAX_ROLES)
2016 && gAgent.hasPowerInGroup(mGroupID, GP_ROLE_CREATE) ) 2022 && gAgent.hasPowerInGroup(mGroupID, GP_ROLE_CREATE) )
2017 { 2023 {
2018 mCreateRoleButton->setEnabled(TRUE); 2024 mCreateRoleButton->setEnabled(TRUE);