dabo Commit
Revision 5005
Date: 2009-01-31 14:22:40 -0800 (Sat, 31 Jan 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5005
Changed:
U trunk/dabo/ui/dDataControlMixinBase.py
Log:
Added some defensive code for cases where controls are released before the
LostFocus event is raised.
Diff:
Modified: trunk/dabo/ui/dDataControlMixinBase.py
===================================================================
--- trunk/dabo/ui/dDataControlMixinBase.py 2009-01-31 00:44:02 UTC (rev
5004)
+++ trunk/dabo/ui/dDataControlMixinBase.py 2009-01-31 22:22:40 UTC (rev
5005)
@@ -41,6 +41,8 @@
def __onDestroy(self, evt):
+ if not self:
+ return
if self.SaveRestoreValue:
self.saveValue()
@@ -50,6 +52,8 @@
def __onLostFocus(self, evt):
+ if not self:
+ return
if self._lostFocus() is False:
evt.stop()
@@ -68,6 +72,8 @@
def _lostFocus(self):
+ if not self:
+ return
if self.flushValue() is False:
# Field validation failed
self._fldValidFailed = True
_______________________________________________
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]