fixed yet another bug in wxActivateEvent handling

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-10-07 14:34:07 +00:00
parent bc6abe52a7
commit 31ae546e16

View File

@@ -535,13 +535,13 @@ wxWindowMGL::~wxWindowMGL()
if (gs_activeFrame == this)
{
gs_activeFrame = NULL;
// activate next frame in Z-order:
if ( m_wnd->prev )
{
wxWindowMGL *win = (wxWindowMGL*)m_wnd->prev->userData;
win->SetFocus();
}
gs_activeFrame = NULL;
}
if ( gs_focusedWindow == this )