forked from Mirrors/openclonk
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
parent
e4b4246500
commit
357eb462bd
|
@ -1290,6 +1290,7 @@ QString C4PropertyDelegateEnum::GetDisplayString(const C4Value &v, class C4Objec
|
||||||
C4Value param_val = v;
|
C4Value param_val = v;
|
||||||
if (option.value_key.Get())
|
if (option.value_key.Get())
|
||||||
{
|
{
|
||||||
|
param_val.Set0();
|
||||||
C4PropList *vp = v.getPropList();
|
C4PropList *vp = v.getPropList();
|
||||||
if (vp) vp->GetPropertyByS(option.value_key, ¶m_val);
|
if (vp) vp->GetPropertyByS(option.value_key, ¶m_val);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue