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:
parent
046d682f0f
commit
29ea653e5c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user