From b959a156bafd83355b6b7350318500cdc14420f3 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Tue, 20 Jun 2017 17:14:18 +0300 Subject: MAINT-7507 FIXED When assigning abilities to a group role, ticking "Manage ban list" causes other selected abilities to untick --- indra/newview/llpanelgrouproles.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llpanelgrouproles.cpp b/indra/newview/llpanelgrouproles.cpp index 78270c20bb..66a0a1d4ad 100644 --- a/indra/newview/llpanelgrouproles.cpp +++ b/indra/newview/llpanelgrouproles.cpp @@ -2472,12 +2472,7 @@ void LLPanelGroupRolesSubTab::handleActionCheck(LLUICtrl* ctrl, bool force) ////////////////////////////////////////////////////////////////////////// - LLGroupMgrGroupData::role_list_t::iterator rit = gdatap->mRoles.find(role_id); - U64 current_role_powers = GP_NO_POWERS; - if (rit != gdatap->mRoles.end()) - { - current_role_powers = ((*rit).second->getRoleData().mRolePowers); - } + U64 current_role_powers = gdatap->getRolePowers(role_id); if(isEnablingAbility) { -- cgit v1.2.3