diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-05-30 22:44:30 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-05-30 22:44:30 +0300 |
commit | 3a8521c38b17adb9d3006be0d7a23f94da7bcaea (patch) | |
tree | c08f9df6acab87b4a68a3e622cb6aa2d6f194b47 | |
parent | 03f1de97e697c55ed3b7e190f763162638f364f4 (diff) |
STORM-1244 WIP Minor bug fix in the Environment Settings floater.
Populate combo boxes *before* accessing them.
-rw-r--r-- | indra/newview/llfloaterenvironmentsettings.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llfloaterenvironmentsettings.cpp b/indra/newview/llfloaterenvironmentsettings.cpp index 9fb44521a2..49f0161bdd 100644 --- a/indra/newview/llfloaterenvironmentsettings.cpp +++ b/indra/newview/llfloaterenvironmentsettings.cpp @@ -91,15 +91,15 @@ void LLFloaterEnvironmentSettings::onOpen(const LLSD& key) mRegionSettingsRadioGroup->setSelectedIndex(mUseRegionSettings ? 0 : 1); mDayCycleSettingsRadioGroup->setSelectedIndex(mUseFixedSky ? 0 : 1); - // Update other controls state based on the selected radio buttons. - onSwitchRegionSettings(); - onSwitchDayCycle(); - // Populate the combo boxes with appropriate lists of available presets. populateWaterPresetsList(); populateSkyPresetsList(); populateDayCyclePresetsList(); + // Update other controls state based on the selected radio buttons. + onSwitchRegionSettings(); + onSwitchDayCycle(); + // Save water, sky and day cycle presets to restore them // in case of "Cancel" button has been pressed. mWaterPreset = env_mgr->getWaterPresetName(); |