From 1f57ea72b4426bc1dd7ca1771335ce4cdba65d99 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 26 Aug 2006 13:23:06 +0000 Subject: [PATCH] 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.) --- Nasal/gui.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/gui.nas b/Nasal/gui.nas index 64e841a82..60a794854 100644 --- a/Nasal/gui.nas +++ b/Nasal/gui.nas @@ -204,7 +204,7 @@ Dialog = { property_browser = func(dir = "/") { var dlgname = "property-browser"; foreach (var module; keys(globals)) { - if (find("__dlg:" ~ dlgname, module) >= 0) { + if (find("__dlg:" ~ dlgname, module) == 0) { return globals[module].clone(dir); } }