From c9507e1c9156ed95dbb98edec28fafcde40e7c2b Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Fri, 25 Jan 2013 17:49:45 +0100 Subject: Restored --- src/main/resources/boot/SC/InstantiateItem.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/resources/boot/SC/InstantiateItem.xml') 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) { } ]]> -- cgit v1.2.3