diff options
Diffstat (limited to 'src/main/resources/boot/SC/InstantiateItem.xml')
| -rw-r--r-- | src/main/resources/boot/SC/InstantiateItem.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/resources/boot/SC/InstantiateItem.xml b/src/main/resources/boot/SC/InstantiateItem.xml index 4e80e9d..85005cd 100644 --- a/src/main/resources/boot/SC/InstantiateItem.xml +++ b/src/main/resources/boot/SC/InstantiateItem.xml @@ -20,9 +20,9 @@ } // If this script is running in the Cristal GUI, open the new item.
- var tree = Packages.com.c2kernel.gui.MainFrame.treeBrowser;
- if (tree != null)
- tree.push(new DomainPath(domPath+"/"+name));
+ try {
+ Packages.com.c2kernel.gui.MainFrame.treeBrowser.push(new DomainPath(domPath+"/"+name));
+ } catch (e) { }
]]></script>
</cristalscript>
|
