summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-04-05 07:47:21 -0700
committerGraham Linden <graham@lindenlab.com>2019-04-05 07:47:21 -0700
commitfa6f770a895d663266df5907ff13c2676e6ce8ad (patch)
tree7187bb7b555fdb008e8970712637336116a16878
parentc699ee9a7f102aa541dcc102e8fa1de2d6c55bde (diff)
parent6d756c53376cfc12feea75d145e28b5c02c9944a (diff)
Merge
-rw-r--r--indra/newview/llfloaterregioninfo.cpp5
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);