summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2013-01-25 17:49:45 +0100
committerAndrew Branson <andrew.branson@cern.ch>2013-01-25 17:49:45 +0100
commitc9507e1c9156ed95dbb98edec28fafcde40e7c2b (patch)
treefadf8fa6abce2dd4158da7a0d8d504b5c16ceb82
parentaf8ec6b50a6a613db4a8945c2a14510ac994b5a1 (diff)
Restored
-rw-r--r--src/main/resources/boot/SC/InstantiateItem.xml6
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>