X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fb9d2be3f3092f3340616bc4aba020c43d10e71..bedaf53eaf4e2a860b34d4ff5e0b1928ce8fa5c9:/src/os2/frame.cpp?ds=sidebyside diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index dbc1e6be98..457b712767 100644 --- a/src/os2/frame.cpp +++ b/src/os2/frame.cpp @@ -1109,6 +1109,15 @@ void wxFrame::OnActivate( } } // end of wxFrame::OnActivate +void wxFrame::RemoveChild( + wxWindowBase* pChild +) +{ + if (pChild == m_pWinLastFocused) + m_pWinLastFocused = NULL; + wxFrameBase::RemoveChild(pChild); +} // end of wxFrame::RemoveChild + // ---------------------------------------------------------------------------- // wxFrame size management: we exclude the areas taken by menu/status/toolbars // from the client area, so the client area is what's really available for the