]> git.saurik.com Git - wxWidgets.git/commitdiff
don't bubble up the events upwards the window hierarchy in non-last event handler...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 9 Jul 2007 14:48:48 +0000 (14:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 9 Jul 2007 14:48:48 +0000 (14:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/event.cpp

index d1a93adc8ac26bff545cf925b019ac89ce0a0ead..d0c22a72d1f226f6a5dc890a5bc0a4c574ea064e 100644 (file)
@@ -1252,8 +1252,10 @@ bool wxEvtHandler::ProcessEvent(wxEvent& event)
     // Try going down the event handler chain
     if ( GetNextHandler() )
     {
-        if ( GetNextHandler()->ProcessEvent(event) )
-            return true;
+        // notice that we shouldn't let the parent have the event even if the
+        // next handler does not process it because it will have already passed
+        // it to the parent in this case
+        return GetNextHandler()->ProcessEvent(event);
     }
 
     // Finally propagate the event upwards the window chain and/or to the