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/llfloaterenvironmentsettings.cpp | |
parent | 6e2c05a512f498fe10aee307308e0365536f9819 (diff) |
STORM-1253 WIP Update UI when a day cycle gets added or deleted.
Diffstat (limited to 'indra/newview/llfloaterenvironmentsettings.cpp')
-rw-r--r-- | indra/newview/llfloaterenvironmentsettings.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llfloaterenvironmentsettings.cpp b/indra/newview/llfloaterenvironmentsettings.cpp index 35163d6230..7287a2beff 100644 --- a/indra/newview/llfloaterenvironmentsettings.cpp +++ b/indra/newview/llfloaterenvironmentsettings.cpp @@ -75,6 +75,8 @@ BOOL LLFloaterEnvironmentSettings::postBuild() setCloseCallback(boost::bind(&LLFloaterEnvironmentSettings::cancel, this)); + LLDayCycleManager::instance().setModifyCallback(boost::bind(&LLFloaterEnvironmentSettings::onDayCycleListChange, this)); + return TRUE; } @@ -161,6 +163,11 @@ void LLFloaterEnvironmentSettings::onSelectDayCyclePreset() mDirty = true; } +void LLFloaterEnvironmentSettings::onDayCycleListChange() +{ + populateDayCyclePresetsList(); +} + void LLFloaterEnvironmentSettings::onBtnOK() { mDirty = false; |