summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2019-02-14 17:16:29 +0200
committermaxim_productengine <mnikolenko@productengine.com>2019-02-14 17:16:29 +0200
commit4b238a49750cd02739c679282e2564b54706ad00 (patch)
treeed8e00e276d4a0875498d850b323c26897d9fe67
parente9777048751c73819e85257a6e7b0d0608fd6c39 (diff)
SL-10548 Set appropriate label for commit button when opening the floater
-rw-r--r--indra/newview/llfloatereditextdaycycle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llfloatereditextdaycycle.cpp b/indra/newview/llfloatereditextdaycycle.cpp
index c16eb11293..eccdf8249d 100644
--- a/indra/newview/llfloatereditextdaycycle.cpp
+++ b/indra/newview/llfloatereditextdaycycle.cpp
@@ -414,6 +414,8 @@ void LLFloaterEditExtDayCycle::onOpen(const LLSD& key)
}
else if ((mEditContext == CONTEXT_REGION) || (mEditContext == CONTEXT_PARCEL))
{
+ std::string commit_str = (mEditContext == CONTEXT_PARCEL) ? STR_COMMIT_PARCEL : STR_COMMIT_REGION;
+ mFlyoutControl->setMenuItemLabel(ACTION_COMMIT, getString(commit_str));
mFlyoutControl->setShownBtnEnabled(true);
mFlyoutControl->setSelectedItem(ACTION_COMMIT);
}