From 6205d5eb1a06a64d970b0ce02986802ca541be55 Mon Sep 17 00:00:00 2001 From: david Date: Sun, 19 Jan 2003 17:22:05 +0000 Subject: [PATCH] Do an update after apply to see what really got into FlightGear. --- src/Main/fg_commands.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index d209f8b4c..9f3c12c01 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -660,10 +660,12 @@ do_dialog_apply (const SGPropertyNode * arg) FGDialog * widget = gui->getCurrentWidget(); if (widget != 0) { if (arg->hasValue("object-name")) { - gui->getCurrentWidget() - ->applyValue(arg->getStringValue("object-name")); + const char * name = arg->getStringValue("object-name"); + gui->getCurrentWidget()->applyValue(name); + gui->getCurrentWidget()->updateValue(name); } else { gui->getCurrentWidget()->applyValues(); + gui->getCurrentWidget()->updateValues(); } return true; } else { -- 2.39.5