dabo Commit
Revision 5039
Date: 2009-02-08 08:20:23 -0800 (Sun, 08 Feb 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5039

Changed:
U   trunk/dabo/ui/uiwx/dFormMixin.py

Log:
When in designer mode, we don't need to save size and position, either.

Diff:
Modified: trunk/dabo/ui/uiwx/dFormMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dFormMixin.py    2009-02-07 19:10:03 UTC (rev 5038)
+++ trunk/dabo/ui/uiwx/dFormMixin.py    2009-02-08 16:20:23 UTC (rev 5039)
@@ -211,7 +211,11 @@
        
        
        def __onClose(self, evt):
-               self.saveSizeAndPosition()
+               app = self.Application
+
+               if not self._designerMode:      
+                       self.saveSizeAndPosition()
+
                force = evt.EventData["force"]
                if not force:
                        if self._beforeClose(evt) == False:
@@ -220,8 +224,6 @@
                        # Run the cleanup code.
                        self.closing()
                
-               app = self.Application
-
                self._isClosed = True
                if self._isModal:
                        self.MakeModal(False)
@@ -230,7 +232,7 @@
                self.Visible = False    
 
                if app is not None:
-                       self.Application.uiForms.remove(self)
+                       app.uiForms.remove(self)
 
 
        def activeControlValid(self):



_______________________________________________
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