Ignore kill focus events when being destroyed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-04-08 18:05:15 +00:00
parent 046d682f0f
commit 29ea653e5c

View File

@ -5298,6 +5298,8 @@ class MaskedEditMixin:
""" Handler for EVT_KILL_FOCUS event.
"""
## dbg('MaskedEditMixin::_OnKillFocus', 'isDate=',self._isDate, indent=1)
if self.IsBeingDeleted() or self.GetParent().IsBeingDeleted():
return
if self._mask and self._IsEditable():
self._AdjustField(self._GetInsertionPoint())
self._CheckValid() ## Call valid handler