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