Debugger: Minor tweak to enumeration editor.

- Don't return result of SelectOptionFor(). It's possible to attempt
to edit an enum value that hasn't yet been initialized, in which case
its current value might not map to any of the defined enumerations, and
the resulting error would prevent editing from being allowed.
This commit is contained in:
Rene Gollent 2015-07-24 23:20:04 -04:00
parent 410b38b5c5
commit af92957fd9

View File

@ -44,7 +44,9 @@ TableCellEnumerationEditor::ConfigureOptions()
if (!initialValue->ToVariant(integerValue))
return B_NO_MEMORY;
return SelectOptionFor(integerValue.ToInt32());
SelectOptionFor(integerValue.ToInt32());
return B_OK;
}