summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2011-07-07 18:29:30 +0300
committerVadim ProductEngine <vsavchuk@productengine.com>2011-07-07 18:29:30 +0300
commit20dfccba4e88c525227e519bd884aeb1effdb480 (patch)
treebceb458bc2afa0ecf94865549b781b0c67af40e4
parent66dcc72870b19c6ada65a643ca33c779c9c9989b (diff)
STORM-1483 FIXED Unable to delete the last water/sky/day preset.
-rw-r--r--indra/newview/llfloaterdeleteenvpreset.cpp2
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)
{