src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 27 May 2015 08:06:07 +0000 (16:06 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 27 May 2015 08:06:07 +0000 (16:06 +0800)
src/Builder4/MainWindow.vala

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

index b8edbd7..93f31bf 100644 (file)
                  "items" : [
                   {
                    "listeners" : {
-                    "clicked" : "  ( ) => {\n  \n    // create a new file in project..\n    if (_this.project == null || _this.windowstate.left_tree.model.file == null) {\n        return  ;\n    }\n     _this.windowstate.file_details.show(\n        _this.windowstate.left_tree.model.file, this.el\n    );\n     \n    return  ;    \n\n\n}"
+                    "clicked" : "  ( ) => {\n  \n    // create a new file in project..\n    if (_this.project == null || _this.windowstate.file == null) {\n        return  ;\n    }\n     _this.windowstate.file_details.show(\n        _this.windowstate.file, this.el\n    );\n     \n    return  ;    \n\n\n}"
                    },
                    "* pack" : false,
                    "xtype" : "Button",
index 922a972..710e47d 100644 (file)
@@ -1267,11 +1267,11 @@ public class Xcls_MainWindow : Object
             this.el.clicked.connect( ( ) => {
               
                 // create a new file in project..
-                if (_this.project == null || _this.windowstate.left_tree.model.file == null) {
+                if (_this.project == null || _this.windowstate.file == null) {
                     return  ;
                 }
                  _this.windowstate.file_details.show(
-                    _this.windowstate.left_tree.model.file, this.el
+                    _this.windowstate.file, this.el
                 );
                  
                 return  ;