From 46336cac5a4c07aa47e83c6a0667e2a96dc0d100 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sat, 9 Mar 2013 01:29:46 +0100 Subject: [PATCH] Fixed wrong (inverted) abort condition --- indra/newview/quickprefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/quickprefs.cpp b/indra/newview/quickprefs.cpp index a564134284..7ac955da87 100644 --- a/indra/newview/quickprefs.cpp +++ b/indra/newview/quickprefs.cpp @@ -454,7 +454,7 @@ std::string FloaterQuickPrefs::stepComboBox(LLComboBox* ctrl, bool forward) ctrl->setCurrentByIndex(curid); preset_name = ctrl->getSelectedValue().asString(); } - while (!isValidPresetName(preset_name) || preset_name == start_preset_name); + while (!isValidPresetName(preset_name) && preset_name != start_preset_name); return preset_name; }