diff options
author | Graham Linden <graham@lindenlab.com> | 2019-04-05 07:47:21 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-04-05 07:47:21 -0700 |
commit | fa6f770a895d663266df5907ff13c2676e6ce8ad (patch) | |
tree | 7187bb7b555fdb008e8970712637336116a16878 /indra/newview/llfloaterregioninfo.cpp | |
parent | c699ee9a7f102aa541dcc102e8fa1de2d6c55bde (diff) | |
parent | 6d756c53376cfc12feea75d145e28b5c02c9944a (diff) |
Merge
Diffstat (limited to 'indra/newview/llfloaterregioninfo.cpp')
-rw-r--r-- | indra/newview/llfloaterregioninfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llfloaterregioninfo.cpp b/indra/newview/llfloaterregioninfo.cpp index 9f33feb901..a7887eb9b4 100644 --- a/indra/newview/llfloaterregioninfo.cpp +++ b/indra/newview/llfloaterregioninfo.cpp @@ -3257,13 +3257,14 @@ void LLPanelRegionEnvironment::onChkAllowOverride(bool value) mAllowOverrideRestore = mAllowOverride; mAllowOverride = value; - LLNotification::Params params("ChangeLindenEstate"); - params.functor.function([this](const LLSD& notification, const LLSD& response) { confirmUpdateEstateEnvironment(notification, response); }); std::string notification("EstateParcelEnvironmentOverride"); if (LLPanelEstateInfo::isLindenEstate()) notification = "ChangeLindenEstate"; + LLNotification::Params params(notification); + params.functor.function([this](const LLSD& notification, const LLSD& response) { confirmUpdateEstateEnvironment(notification, response); }); + if (!value || LLPanelEstateInfo::isLindenEstate()) { // warn if turning off or a Linden Estate LLNotifications::instance().add(params); |