]> git.saurik.com Git - wxWidgets.git/commitdiff
Move reentrance guard down.
authorRobert Roebling <robert@roebling.de>
Tue, 10 Oct 2006 17:45:57 +0000 (17:45 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 10 Oct 2006 17:45:57 +0000 (17:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/event.cpp

index abca39a4b70081125000d6317c2c32d693c4b8ea..df764235acf79431caff1336578944f751a47a29 100644 (file)
@@ -1166,9 +1166,6 @@ void wxEvtHandler::ProcessPendingEvents()
 
         ProcessEvent(*event);
 
-        // eventhandling no longer in progess
-        m_eventHandlingInProgress = false;
-        
         delete event;
 
         wxENTER_CRIT_SECT( Lock() );
@@ -1178,6 +1175,9 @@ void wxEvtHandler::ProcessPendingEvents()
     }
 
     wxLEAVE_CRIT_SECT( Lock() );
+    
+    // eventhandling no longer in progess
+    m_eventHandlingInProgress = false;
 }
 
 /*