1
0
Fork 0

Do an update after apply to see what really got into FlightGear.

This commit is contained in:
david 2003-01-19 17:22:05 +00:00
parent dd4890d952
commit 6205d5eb1a

View file

@ -660,10 +660,12 @@ do_dialog_apply (const SGPropertyNode * arg)
FGDialog * widget = gui->getCurrentWidget(); FGDialog * widget = gui->getCurrentWidget();
if (widget != 0) { if (widget != 0) {
if (arg->hasValue("object-name")) { if (arg->hasValue("object-name")) {
gui->getCurrentWidget() const char * name = arg->getStringValue("object-name");
->applyValue(arg->getStringValue("object-name")); gui->getCurrentWidget()->applyValue(name);
gui->getCurrentWidget()->updateValue(name);
} else { } else {
gui->getCurrentWidget()->applyValues(); gui->getCurrentWidget()->applyValues();
gui->getCurrentWidget()->updateValues();
} }
return true; return true;
} else { } else {