SL-15571 update ‘Reset’ button in the ‘Covenant’ tab correctly

meow-7.2.2
Mnikolenko Productengine 2021-07-20 16:58:25 +03:00
parent 52c898b765
commit 03e0640212
1 changed files with 2 additions and 0 deletions

View File

@ -2085,6 +2085,8 @@ bool LLPanelEstateCovenant::refreshFromRegion(LLViewerRegion* region)
LLTextBox* region_landtype = getChild<LLTextBox>("region_landtype_text");
region_landtype->setText(region->getLocalizedSimProductName());
getChild<LLButton>("reset_covenant")->setEnabled(gAgent.isGodlike() || (region && region->canManageEstate()));
// let the parent class handle the general data collection.
bool rv = LLPanelRegionInfo::refreshFromRegion(region);