From c7a1b5cf81da1cdd2a604474d9c5e7065689a1c5 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 1 Nov 2010 11:27:35 +0800 Subject: [PATCH] Sample/Editor.js --- Sample/Editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sample/Editor.js b/Sample/Editor.js index cfbd52440..d37ff26e3 100644 --- a/Sample/Editor.js +++ b/Sample/Editor.js @@ -14,7 +14,7 @@ Editor=new XObject({ xtype: Gtk.Window, listeners : { destroy_event : function (self, event) { - if (!this.save()) { + if (!this.get('/Editor.RightEditor').save()) { // no hiding with errors. return true; } @@ -22,7 +22,7 @@ Editor=new XObject({ return true; }, delete_event : function (self, event) { - if (!this.save()) { + if (!this.get('/Editor.RightEditor').save()) { // no hiding with errors. return true; } -- 2.39.2