]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed yet another bug in wxActivateEvent handling
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 7 Oct 2001 14:34:07 +0000 (14:34 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 7 Oct 2001 14:34:07 +0000 (14:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mgl/window.cpp

index 00bc22aae5a88ebd208f742f368d7c2000c395b5..1360b6545090597fb7c2053e09551557e8b16300 100644 (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 )