Fix display of nil enum child delegate value if stored in a proplist and key is not defined.

It would fall back to the outer value instead.
console-destruction
Sven Eberhardt 2016-08-27 02:21:35 -04:00
parent e4b4246500
commit 357eb462bd
1 changed files with 1 additions and 0 deletions

View File

@ -1290,6 +1290,7 @@ QString C4PropertyDelegateEnum::GetDisplayString(const C4Value &v, class C4Objec
C4Value param_val = v;
if (option.value_key.Get())
{
param_val.Set0();
C4PropList *vp = v.getPropList();
if (vp) vp->GetPropertyByS(option.value_key, &param_val);
}