From: Alan Knowles Date: Tue, 7 Jun 2016 08:37:06 +0000 (+0800) Subject: src/Builder4/WindowRooView.bjs X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=dc0a2fdd5c5f3be8e997d3d0194101cf3850bfc0 src/Builder4/WindowRooView.bjs src/Builder4/WindowRooView.vala --- diff --git a/src/Builder4/WindowRooView.bjs b/src/Builder4/WindowRooView.bjs index 350d9bbc9..5ab13af91 100644 --- a/src/Builder4/WindowRooView.bjs +++ b/src/Builder4/WindowRooView.bjs @@ -178,7 +178,7 @@ "items" : [ { "listeners" : { - "changed" : " () => {\n // check syntax??\n // ??needed..??\n // _this.save_button.el.sensitive = true;\n ///?? has changed occured during loading?\n if (_this.sourceview.loading) {\n\t\treturn;\n\t}\n\t\n print(\"- PREVIEW EDITOR CHANGED--\");\n \n \n this.checkSyntax();\n \n this.dirty = true;\n\n\n return ;\n}\n\n \n" + "changed" : " () => {\n // check syntax??\n // ??needed..??\n // _this.save_button.el.sensitive = true;\n ///?? has changed occured during loading?\n if (_this.sourceview.loading) {\n\t\treturn;\n\t}\n\t\n print(\"- PREVIEW EDITOR CHANGED--\");\n \n this.dirty = true; \n if (!this.checkSyntax()) {\n\t\treturn;\n\t}\t\t\n \n \n\n\n\n return ;\n}\n\n \n" }, "bool dirty" : false, "id" : "buffer", diff --git a/src/Builder4/WindowRooView.vala b/src/Builder4/WindowRooView.vala index 12c3a262f..94d203db1 100644 --- a/src/Builder4/WindowRooView.vala +++ b/src/Builder4/WindowRooView.vala @@ -1310,10 +1310,13 @@ public class Xcls_WindowRooView : Object print("- PREVIEW EDITOR CHANGED--"); + this.dirty = true; + if (!this.checkSyntax()) { + return; + } - this.checkSyntax(); - this.dirty = true; + return ;