while -> if

This commit is contained in:
Paul Licameli 2017-10-11 22:38:42 -04:00
parent 4644b5cb16
commit c40b254626
1 changed files with 4 additions and 1 deletions

View File

@ -369,8 +369,11 @@ bool EffectEqualization::ValidateUI()
{
// If editing a batch chain, we don't want to be using the unnamed curve so
// we offer to save it.
while (mDisallowCustom && mCurveName.IsSameAs(wxT("unnamed")))
if (mDisallowCustom && mCurveName.IsSameAs(wxT("unnamed")))
{
// PRL: This is unreachable. mDisallowCustom is always false.
Effect::MessageBox(_("To use this EQ curve in a batch chain, please choose a new name for it.\nChoose the 'Save/Manage Curves...' button and rename the 'unnamed' curve, then use that one."),
wxOK | wxCENTRE,
_("EQ Curve needs a different name"));