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:
parent
410b38b5c5
commit
af92957fd9
@ -44,7 +44,9 @@ TableCellEnumerationEditor::ConfigureOptions()
|
||||
if (!initialValue->ToVariant(integerValue))
|
||||
return B_NO_MEMORY;
|
||||
|
||||
return SelectOptionFor(integerValue.ToInt32());
|
||||
SelectOptionFor(integerValue.ToInt32());
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user