<property>, except if they are activated, in which case the user input
should, of course, not get overwritten. But if such an input was active and
the user selected a different widget, then its contents were dropped.
Fix that by setting the "DownCallback" for live input fields.
void
FGDialog::setupObject (puObject * object, SGPropertyNode * props)
{
+ string type = props->getName();
object->setLabelPlace(PUPLACE_CENTERED_RIGHT);
if (props->hasValue("legend"))
info->bindings.push_back(new FGBinding(binding));
}
object->setCallback(action_callback);
+
+ if (type == "input" && props->getBoolValue("live"))
+ object->setDownCallback(action_callback);
+
object->setUserData(info);
_info.push_back(info);
}