1
0
Fork 0

fix indentation

This commit is contained in:
mfranz 2006-07-20 17:52:55 +00:00
parent 8c7beac9d9
commit 0246507821

View file

@ -149,19 +149,19 @@ Widget = {
# fgcommand("dialog-show", dlg);
#
loadXMLDialog = func(node, path) {
if (node.getName() != "dialog") {
print("loadXMLDialog: node name must be 'dialog'");
return nil;
}
fgcommand("loadxml", props.Node.new({"filename": path, "targetnode": node.getPath()}));
var name = node.getNode("name");
if (name == nil) {
print("loadXMLDialog: XML dialog must have <name>");
return nil;
}
node.getNode("dialog-name", 1).setValue(name.getValue());
fgcommand("dialog-new", node);
node;
if (node.getName() != "dialog") {
print("loadXMLDialog: node name must be 'dialog'");
return nil;
}
fgcommand("loadxml", props.Node.new({"filename": path, "targetnode": node.getPath()}));
var name = node.getNode("name");
if (name == nil) {
print("loadXMLDialog: XML dialog must have <name>");
return nil;
}
node.getNode("dialog-name", 1).setValue(name.getValue());
fgcommand("dialog-new", node);
node;
}