diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-06-14 18:04:29 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-06-14 18:04:29 +0300 |
commit | ab431d1774d5b282836a3327dd0bfa8b3b91632b (patch) | |
tree | 22e89504eb196f0310b5473d299950c8ea8476f6 /indra/newview/llfloaterdeleteenvpreset.cpp | |
parent | 4fd946fa3e5217b8f64e0fcd91d268c7eaf1bbf5 (diff) |
STORM-1305 WIP User day cycles now go first in all lists.
Diffstat (limited to 'indra/newview/llfloaterdeleteenvpreset.cpp')
-rw-r--r-- | indra/newview/llfloaterdeleteenvpreset.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/indra/newview/llfloaterdeleteenvpreset.cpp b/indra/newview/llfloaterdeleteenvpreset.cpp index cd9f46e5a2..4fefd2242a 100644 --- a/indra/newview/llfloaterdeleteenvpreset.cpp +++ b/indra/newview/llfloaterdeleteenvpreset.cpp @@ -244,17 +244,11 @@ void LLFloaterDeleteEnvPreset::populateDayCyclesList() } LLDayCycleManager& day_mgr = LLDayCycleManager::instance(); - const LLDayCycleManager::dc_map_t& map = day_mgr.getPresets(); - for (LLDayCycleManager::dc_map_t::const_iterator it = map.begin(); it != map.end(); ++it) + LLDayCycleManager::preset_name_list_t user_days; + day_mgr.getUserPresetNames(user_days); // list only user presets + for (LLDayCycleManager::preset_name_list_t::const_iterator it = user_days.begin(); it != user_days.end(); ++it) { - const std::string& name = it->first; - - // list only user presets - if (day_mgr.isSystemPreset(name)) - { - continue; - } - + const std::string& name = *it; mPresetCombo->add(name, ADD_BOTTOM, name != cur_day); } |