dabo Commit
Revision 5263
Date: 2009-06-23 10:47:59 -0700 (Tue, 23 Jun 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5263

Changed:
U   trunk/ide/ReportDesigner.py

Log:
You can File|Quit the ReportDesigner without getting prompted to save, losing
all your changes. Fixed.


Diff:
Modified: trunk/ide/ReportDesigner.py
===================================================================
--- trunk/ide/ReportDesigner.py 2009-06-22 22:27:13 UTC (rev 5262)
+++ trunk/ide/ReportDesigner.py 2009-06-23 17:47:59 UTC (rev 5263)
@@ -35,6 +35,10 @@
                        # Mac-specific behavior
                        self.ActiveEditor.onKeyDown(evt)
 
+               def onFileExit(self, evt):
+                       ret = self.ActiveEditor.closeFile()
+                       if ret is not None:
+                               self.finish()
 
                def getShortExpr(self, expr):
                        """Given an expression, return a shortened version for 
display in designer."""
@@ -1926,6 +1930,7 @@
                self.setCaption()
 
 
+
        def closeFile(self):
                result = self.promptToSave()
 
@@ -2327,6 +2332,7 @@
                self.editor = self.pgf.Pages[0]
 
 
+
        def onActivate(self, evt):
                rdc.ActiveEditor = self.editor
 



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to