diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-07-07 18:29:30 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-07-07 18:29:30 +0300 |
commit | 20dfccba4e88c525227e519bd884aeb1effdb480 (patch) | |
tree | bceb458bc2afa0ecf94865549b781b0c67af40e4 | |
parent | 66dcc72870b19c6ada65a643ca33c779c9c9989b (diff) |
STORM-1483 FIXED Unable to delete the last water/sky/day preset.
-rw-r--r-- | indra/newview/llfloaterdeleteenvpreset.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llfloaterdeleteenvpreset.cpp b/indra/newview/llfloaterdeleteenvpreset.cpp index 4fefd2242a..d08aa81cfe 100644 --- a/indra/newview/llfloaterdeleteenvpreset.cpp +++ b/indra/newview/llfloaterdeleteenvpreset.cpp @@ -258,7 +258,7 @@ void LLFloaterDeleteEnvPreset::populateDayCyclesList() void LLFloaterDeleteEnvPreset::postPopulate() { // Handle empty list and empty selection. - bool has_selection = mPresetCombo->getItemCount() > 1 && mPresetCombo->getSelectedValue().isDefined(); + bool has_selection = mPresetCombo->getItemCount() > 0 && mPresetCombo->getSelectedValue().isDefined(); if (!has_selection) { |