diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-06-01 18:26:36 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-06-01 18:26:36 +0300 |
commit | 995a006b58f2be1d7236b32be3570b6d7250013b (patch) | |
tree | 475c135fca3d5c7ff89ecb70ead0a0a4ecccc3da /indra/newview/llfloatereditdaycycle.cpp | |
parent | 6e2c05a512f498fe10aee307308e0365536f9819 (diff) |
STORM-1253 WIP Update UI when a day cycle gets added or deleted.
Diffstat (limited to 'indra/newview/llfloatereditdaycycle.cpp')
-rw-r--r-- | indra/newview/llfloatereditdaycycle.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llfloatereditdaycycle.cpp b/indra/newview/llfloatereditdaycycle.cpp index 8c85f6833b..f77e73c30b 100644 --- a/indra/newview/llfloatereditdaycycle.cpp +++ b/indra/newview/llfloatereditdaycycle.cpp @@ -147,6 +147,9 @@ void LLFloaterEditDayCycle::initCallbacks(void) env_mgr.setRegionChangeCallback(boost::bind(&LLFloaterEditDayCycle::onRegionChange, this)); env_mgr.setRegionSettingsAppliedCallback(boost::bind(&LLFloaterEditDayCycle::onRegionSettingsApplied, this, _1)); + // Connect to day cycle manager events. + LLDayCycleManager::instance().setModifyCallback(boost::bind(&LLFloaterEditDayCycle::onDayCycleListChange, this)); + // Connect to region info updates. LLRegionInfoModel::instance().setUpdateCallback(boost::bind(&LLFloaterEditDayCycle::onRegionInfoUpdate, this)); } @@ -758,6 +761,14 @@ void LLFloaterEditDayCycle::onSaveConfirmed() closeFloater(); } +void LLFloaterEditDayCycle::onDayCycleListChange() +{ + if (!isNewDay()) + { + refreshDayCyclesList(); + } +} + // static std::string LLFloaterEditDayCycle::getRegionName() { |