diff --git a/contrib/src/stc/stc.cpp b/contrib/src/stc/stc.cpp index 83a9e24895..f96e8ffadc 100644 --- a/contrib/src/stc/stc.cpp +++ b/contrib/src/stc/stc.cpp @@ -2720,10 +2720,7 @@ void wxStyledTextCtrl::OnKeyDown(wxKeyEvent& evt) { void wxStyledTextCtrl::OnLoseFocus(wxFocusEvent& evt) { -#ifdef __WXMAC__ - if (! (IsBeingDeleted() || GetParent()->IsBeingDeleted())) -#endif - m_swx->DoLoseFocus(); + m_swx->DoLoseFocus(); evt.Skip(); } diff --git a/contrib/src/stc/stc.cpp.in b/contrib/src/stc/stc.cpp.in index a52798705e..11f590c9a4 100644 --- a/contrib/src/stc/stc.cpp.in +++ b/contrib/src/stc/stc.cpp.in @@ -529,10 +529,7 @@ void wxStyledTextCtrl::OnKeyDown(wxKeyEvent& evt) { void wxStyledTextCtrl::OnLoseFocus(wxFocusEvent& evt) { -#ifdef __WXMAC__ - if (! (IsBeingDeleted() || GetParent()->IsBeingDeleted())) -#endif - m_swx->DoLoseFocus(); + m_swx->DoLoseFocus(); evt.Skip(); } diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index 83a9e24895..f96e8ffadc 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -2720,10 +2720,7 @@ void wxStyledTextCtrl::OnKeyDown(wxKeyEvent& evt) { void wxStyledTextCtrl::OnLoseFocus(wxFocusEvent& evt) { -#ifdef __WXMAC__ - if (! (IsBeingDeleted() || GetParent()->IsBeingDeleted())) -#endif - m_swx->DoLoseFocus(); + m_swx->DoLoseFocus(); evt.Skip(); } diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index a52798705e..11f590c9a4 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -529,10 +529,7 @@ void wxStyledTextCtrl::OnKeyDown(wxKeyEvent& evt) { void wxStyledTextCtrl::OnLoseFocus(wxFocusEvent& evt) { -#ifdef __WXMAC__ - if (! (IsBeingDeleted() || GetParent()->IsBeingDeleted())) -#endif - m_swx->DoLoseFocus(); + m_swx->DoLoseFocus(); evt.Skip(); }