From 5c4c0d3f0699b8271f8d501f5f51a7e5771b6ec9 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 27 Feb 2015 09:01:45 +0800 Subject: [PATCH] src/Builder4/MainWindow.bjs src/Builder4/MainWindow.vala --- src/Builder4/MainWindow.bjs | 2 +- src/Builder4/MainWindow.vala | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Builder4/MainWindow.bjs b/src/Builder4/MainWindow.bjs index d7f83e37b..25cd17953 100644 --- a/src/Builder4/MainWindow.bjs +++ b/src/Builder4/MainWindow.bjs @@ -246,7 +246,7 @@ "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", diff --git a/src/Builder4/MainWindow.vala b/src/Builder4/MainWindow.vala index ed4a7ea83..20dc26443 100644 --- a/src/Builder4/MainWindow.vala +++ b/src/Builder4/MainWindow.vala @@ -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 ; -- 2.39.2