Builder/LeftProjectTree.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 10 May 2010 11:46:12 +0000 (19:46 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 10 May 2010 11:46:12 +0000 (19:46 +0800)
Builder/LeftProjectTree.js

index b45575f..7ce8f29 100755 (executable)
@@ -435,7 +435,7 @@ LeftProjectTree = new XObject({
                                     // needs more thought!!??
                                     var Window = imports.Builder.Window.Window;
                                     print("PAGES: " + Window.get('notebook').el.get_n_pages());
-                                    Window.get('notebook').el.set_current_page(pr.xtype == 'Roo' ? 0 : 1);
+                                    Window.get('notebook').el.set_current_page(pr.xtype == 'Roo' ? 0 : -1);
                                     
                                     print ("SET notebook to " + pr.xtype);