Do an update after apply to see what really got into FlightGear.
This commit is contained in:
parent
dd4890d952
commit
6205d5eb1a
1 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue