fixed EXT-2958 “The states of checkboxes from Notes&Privacy tab are not saved
after having been modified”; --HG-- branch : product-enginemeow-7.2.2
parent
7c0eac93e7
commit
d3ae1d909e
|
|
@ -254,11 +254,19 @@ void LLPanelAvatarNotes::onCommitRights()
|
|||
const LLRelationship* buddy_relationship =
|
||||
LLAvatarTracker::instance().getBuddyInfo(getAvatarId());
|
||||
bool allow_modify_objects = childGetValue("objects_check").asBoolean();
|
||||
|
||||
// if modify objects checkbox clicked
|
||||
if (buddy_relationship->isRightGrantedTo(
|
||||
LLRelationship::GRANT_MODIFY_OBJECTS) != allow_modify_objects)
|
||||
{
|
||||
confirmModifyRights(allow_modify_objects, rights);
|
||||
}
|
||||
// only one checkbox can trigger commit, so store the rest of rights
|
||||
else
|
||||
{
|
||||
LLAvatarPropertiesProcessor::getInstance()->sendFriendRights(
|
||||
getAvatarId(), rights);
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelAvatarNotes::processProperties(void* data, EAvatarProcessorType type)
|
||||
|
|
|
|||
Loading…
Reference in New Issue