aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgrouproles.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:56 -0500
committerJacek Antonelli2008-08-15 23:44:56 -0500
commitc07901e29ed545bbb02e3bddf148fe1104b94e9f (patch)
treef1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/newview/llpanelgrouproles.cpp
parentSecond Life viewer sources 1.15.0.2 (diff)
downloadmeta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz
Second Life viewer sources 1.15.1.3
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelgrouproles.cpp23
1 files changed, 14 insertions, 9 deletions
diff --git a/linden/indra/newview/llpanelgrouproles.cpp b/linden/indra/newview/llpanelgrouproles.cpp
index 266ff12..5765a12 100644
--- a/linden/indra/newview/llpanelgrouproles.cpp
+++ b/linden/indra/newview/llpanelgrouproles.cpp
@@ -1323,13 +1323,17 @@ void LLPanelGroupMembersSubTab::onRoleCheck(LLUICtrl* ctrl, void* user_data)
1323 LLCheckBoxCtrl* check_box = static_cast<LLCheckBoxCtrl*>(ctrl); 1323 LLCheckBoxCtrl* check_box = static_cast<LLCheckBoxCtrl*>(ctrl);
1324 if (!check_box || !self) return; 1324 if (!check_box || !self) return;
1325 1325
1326 1326 LLScrollListItem* first_selected =
1327 LLUUID role_id = self->mAssignedRolesList->getFirstSelected()->getUUID(); 1327 self->mAssignedRolesList->getFirstSelected();
1328 LLRoleMemberChangeType change_type = (check_box->get() ? 1328 if (first_selected)
1329 RMC_ADD : 1329 {
1330 RMC_REMOVE); 1330 LLUUID role_id = first_selected->getUUID();
1331 1331 LLRoleMemberChangeType change_type = (check_box->get() ?
1332 self->handleRoleCheck(role_id, change_type); 1332 RMC_ADD :
1333 RMC_REMOVE);
1334
1335 self->handleRoleCheck(role_id, change_type);
1336 }
1333} 1337}
1334 1338
1335void LLPanelGroupMembersSubTab::handleMemberDoubleClick() 1339void LLPanelGroupMembersSubTab::handleMemberDoubleClick()
@@ -2056,8 +2060,9 @@ void LLPanelGroupRolesSubTab::update(LLGroupChange gc)
2056 } 2060 }
2057 2061
2058 if ((GC_ROLE_MEMBER_DATA == gc || GC_MEMBER_DATA == gc) 2062 if ((GC_ROLE_MEMBER_DATA == gc || GC_MEMBER_DATA == gc)
2059 && gdatap->isMemberDataComplete() 2063 && gdatap
2060 && gdatap->isRoleMemberDataComplete()) 2064 && gdatap->isMemberDataComplete()
2065 && gdatap->isRoleMemberDataComplete())
2061 { 2066 {
2062 buildMembersList(); 2067 buildMembersList();
2063 } 2068 }