xtype: Gtk.Window,
listeners : {
destroy_event : function (self, event) {
- if (!this.get('/Editor.buffer').checkSyntax) {
+ if (!this.save()) {
// no hiding with errors.
return true;
}
return true;
},
delete_event : function (self, event) {
- this.el.hide();
+ if (!this.save()) {
+ // no hiding with errors.
+ return true;
+ }
+ this.el.hide();
return true;
},
configure_event : function (self, object) {