SL-10849: Select the correct notification for unchecking the parcel owners may override button.
parent
7703ae3b1b
commit
dfdeeb353c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue