From fa820545b7f54a14545e6b0f5ad658464b37f52b Mon Sep 17 00:00:00 2001 From: mfranz Date: Mon, 18 Jun 2007 15:34:36 +0000 Subject: [PATCH] livery: need to set name for standard dialogs separately --- Nasal/gui.nas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Nasal/gui.nas b/Nasal/gui.nas index 0a5a89bd3..2e2e48ec3 100644 --- a/Nasal/gui.nas +++ b/Nasal/gui.nas @@ -176,10 +176,11 @@ Dialog = { new : func(prop, path = nil, name = nil) { var m = { parents : [Dialog] }; m.state = 0; - m.name = name; if (path == nil) { # global dialog in $FG_ROOT/gui/dialogs/ + m.name = prop; m.prop = props.Node.new({ "dialog-name" : prop }); } else { # aircraft dialog with given path + m.name = name; m.path = path; m.prop = isa(prop, props.Node) ? prop : props.globals.getNode(prop, 1); if (m.prop.getName() != "dialog")