]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/menu.cpp
use native lines/columns per action for mouse wheel event
[wxWidgets.git] / src / univ / menu.cpp
index 15a7adb8374e85bceb14299ec1888042f3565ec7..ed0c4a05a91b1a0c5072f4596a9189005222fa84 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Vadim Zeitlin
 // Modified by:
 // Created:     25.08.00
-// RCS-ID:      $Id$
 // Copyright:   (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -1207,6 +1206,10 @@ void wxMenu::Attach(wxMenuBarBase *menubar)
 
 void wxMenu::Detach()
 {
+    // After the menu is detached from the menu bar, it shouldn't send its
+    // events to it.
+    SetNextHandler(NULL);
+
     wxMenuBase::Detach();
 }