Minimal update of llpanelgrouproles.cpp to get the owner role checkbox to enable properly.
This commit is contained in:
@@ -1085,8 +1085,7 @@ void LLPanelGroupMembersSubTab::handleMemberSelect()
|
|||||||
// Extract the checkbox that was created.
|
// Extract the checkbox that was created.
|
||||||
LLScrollListCheck* check_cell = (LLScrollListCheck*) item->getColumn(0);
|
LLScrollListCheck* check_cell = (LLScrollListCheck*) item->getColumn(0);
|
||||||
LLCheckBoxCtrl* check = check_cell->getCheckBox();
|
LLCheckBoxCtrl* check = check_cell->getCheckBox();
|
||||||
check->setCommitCallback(onRoleCheck);
|
check->setCommitCallback(onRoleCheck, this);
|
||||||
check->setCallbackUserData(this);
|
|
||||||
check->set( count > 0 );
|
check->set( count > 0 );
|
||||||
check->setTentative(
|
check->setTentative(
|
||||||
(0 != count)
|
(0 != count)
|
||||||
@@ -1098,6 +1097,7 @@ void LLPanelGroupMembersSubTab::handleMemberSelect()
|
|||||||
//last owner. We should check for this special case
|
//last owner. We should check for this special case
|
||||||
// -jwolk
|
// -jwolk
|
||||||
check->setEnabled(cb_enable);
|
check->setEnabled(cb_enable);
|
||||||
|
item->setEnabled(cb_enable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user