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:
@@ -5298,6 +5298,8 @@ class MaskedEditMixin:
|
|||||||
""" Handler for EVT_KILL_FOCUS event.
|
""" Handler for EVT_KILL_FOCUS event.
|
||||||
"""
|
"""
|
||||||
## dbg('MaskedEditMixin::_OnKillFocus', 'isDate=',self._isDate, indent=1)
|
## dbg('MaskedEditMixin::_OnKillFocus', 'isDate=',self._isDate, indent=1)
|
||||||
|
if self.IsBeingDeleted() or self.GetParent().IsBeingDeleted():
|
||||||
|
return
|
||||||
if self._mask and self._IsEditable():
|
if self._mask and self._IsEditable():
|
||||||
self._AdjustField(self._GetInsertionPoint())
|
self._AdjustField(self._GetInsertionPoint())
|
||||||
self._CheckValid() ## Call valid handler
|
self._CheckValid() ## Call valid handler
|
||||||
|
Reference in New Issue
Block a user