fixed EXT-2958 “The states of checkboxes from Notes&Privacy tab are not saved

after having been modified”;

--HG--
branch : product-engine
meow-7.2.2
Alexei Arabadji 2009-12-01 12:24:46 +02:00
parent 7c0eac93e7
commit d3ae1d909e
1 changed files with 8 additions and 0 deletions

View File

@ -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)