diff --git a/src/validators.cpp b/src/validators.cpp index 163edaa1f..ac6e024a6 100644 --- a/src/validators.cpp +++ b/src/validators.cpp @@ -181,7 +181,8 @@ void EnumBinderBase::Set(int value) { rb->SetSelection(value); else if (auto rb = dynamic_cast(GetWindow())) rb->SetSelection(value); - throw agi::InternalError("Control type not supported by EnumBinder"); + else + throw agi::InternalError("Control type not supported by EnumBinder"); } bool StringBinder::TransferFromWindow() {