From: Václav Slavík Date: Sun, 7 Oct 2001 14:34:07 +0000 (+0000) Subject: fixed yet another bug in wxActivateEvent handling X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/31ae546e1684e7a7f7c743e18572ef34fcf19151?ds=inline fixed yet another bug in wxActivateEvent handling git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mgl/window.cpp b/src/mgl/window.cpp index 00bc22aae5..1360b65450 100644 --- a/src/mgl/window.cpp +++ b/src/mgl/window.cpp @@ -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 )