diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-07-20 16:58:25 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-07-20 16:58:25 +0300 |
commit | 03e0640212e69a6794d034a049fd6bdb042dd157 (patch) | |
tree | 8054785fe975990a4c6436a496429e562a5188ab /indra | |
parent | 52c898b765036ccb60889d056e40eec6721de33a (diff) |
SL-15571 update ‘Reset’ button in the ‘Covenant’ tab correctly
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfloaterregioninfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llfloaterregioninfo.cpp b/indra/newview/llfloaterregioninfo.cpp index ec1909d02a..52e1c81884 100644 --- a/indra/newview/llfloaterregioninfo.cpp +++ b/indra/newview/llfloaterregioninfo.cpp @@ -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); |