1
0
Fork 0

a global symbol must not only *contain* __dlg:property_browser, but

start with it. ("__dlg:" is the namespace prefix for Nasal embedded
in XML dialogs. Subsequent property browsers get a random number added.)
This commit is contained in:
mfranz 2006-08-26 13:23:06 +00:00
parent 499e47bede
commit 1f57ea72b4

View file

@ -204,7 +204,7 @@ Dialog = {
property_browser = func(dir = "/") { property_browser = func(dir = "/") {
var dlgname = "property-browser"; var dlgname = "property-browser";
foreach (var module; keys(globals)) { foreach (var module; keys(globals)) {
if (find("__dlg:" ~ dlgname, module) >= 0) { if (find("__dlg:" ~ dlgname, module) == 0) {
return globals[module].clone(dir); return globals[module].clone(dir);
} }
} }