1
0
Fork 0

- dialog-close for the original (non-cloned) dialog instance

- simplify close() function for cloned instances (ignore errors via call())
This commit is contained in:
mfranz 2007-06-14 23:09:01 +00:00
parent e3936992d5
commit 7518aa645b

View file

@ -87,6 +87,9 @@
<command>nasal</command>
<script>ok()</script>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
@ -194,9 +197,8 @@
}
var close = func {
if (contains(globals.gui, "file_selector")
and contains(gui.file_selector.instance, dlgname))
gui.file_selector.instance[dlgname].close();
var err = [];
call(func { gui.FileSelector.instance[dlgname].close() }, nil, err);
}
var ok = func {