From 39d3a58b49dd31fed23eecf5891816a06e4934c2 Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Fri, 17 Oct 2014 00:53:56 -0400 Subject: [PATCH] Only disable friend items that have rights changed (scope reduction surgery) Thanks to Deltek for finding this one! --- indra/newview/llfloaterfriends.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/indra/newview/llfloaterfriends.cpp b/indra/newview/llfloaterfriends.cpp index f2e736674..2c915ce45 100644 --- a/indra/newview/llfloaterfriends.cpp +++ b/indra/newview/llfloaterfriends.cpp @@ -885,8 +885,6 @@ bool LLPanelFriends::modifyRightsConfirmation(const LLSD& notification, const LL void LLPanelFriends::applyRightsToFriends() { - bool rights_changed = false; - // store modify rights separately for confirmation rights_map_t rights_updates; @@ -904,6 +902,7 @@ void LLPanelFriends::applyRightsToFriends() bool show_online_staus = (*itr)->getColumn(LIST_VISIBLE_ONLINE)->getValue().asBoolean(); bool show_map_location = (*itr)->getColumn(LIST_VISIBLE_MAP)->getValue().asBoolean(); bool allow_modify_objects = (*itr)->getColumn(LIST_EDIT_MINE)->getValue().asBoolean(); + bool rights_changed(false); S32 rights = buddy_relationship->getRightsGrantedTo(); if (buddy_relationship->isRightGrantedTo(LLRelationship::GRANT_ONLINE_STATUS) != show_online_staus)