Commits

Vadim Savchuk committed a36f047

STORM-1483 FIXED Unable to delete the last water/sky/day preset.

  • Participants
  • Parent commits 68ad362

Comments (0)

Files changed (1)

File indra/newview/llfloaterdeleteenvpreset.cpp

 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)
 	{