src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 27 Feb 2015 01:01:45 +0000 (09:01 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 27 Feb 2015 01:01:45 +0000 (09:01 +0800)
src/Builder4/MainWindow.vala

src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index d7f83e3..25cd179 100644 (file)
                  "items" : [
                   {
                    "listeners" : {
-                    "clicked" : "  ( ) => {\n  \n    // create a new file in project..\n    if (_this.project == null || _this.left_tree.model.file == null) {\n        return  ;\n    }\n     \n    _this.new_file_dialog.show(_this.left_tree.model.file);\n    \n    return  ;    \n\n\n}"
+                    "clicked" : "  ( ) => {\n  \n    // create a new file in project..\n    if (_this.project == null || _this.left_tree.model.file == null) {\n        return  ;\n    }\n     this.windowstate.new_file_dialog.show(_this.left_tree.model.file);\n     \n    return  ;    \n\n\n}"
                    },
                    "* pack" : false,
                    "xtype" : "Button",
index ed4a7ea..20dc264 100644 (file)
@@ -1369,9 +1369,8 @@ public class Xcls_MainWindow : Object
                 if (_this.project == null || _this.left_tree.model.file == null) {
                     return  ;
                 }
+                 this.windowstate.new_file_dialog.show(_this.left_tree.model.file);
                  
-                _this.new_file_dialog.show(_this.left_tree.model.file);
-                
                 return  ;