Qt editor: Fix AsyncGet on bool delegate

qteditor
Sven Eberhardt 2016-08-05 01:00:33 -04:00
parent 9bcef15b99
commit a14f8597d2
1 changed files with 1 additions and 1 deletions

View File

@ -1459,7 +1459,7 @@ C4PropertyDelegateBool::C4PropertyDelegateBool(const C4PropertyDelegateFactory *
bool C4PropertyDelegateBool::GetPropertyValue(const C4Value &container, C4String *key, int32_t index, C4Value *out_val) const
{
// Force value to bool
bool success = GetPropertyValueBase(container, key, index, out_val);
bool success = C4PropertyDelegateEnum::GetPropertyValue(container, key, index, out_val);
if (out_val->GetType() != C4V_Bool) *out_val = C4VBool(!!*out_val);
return success;
}