]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/menu.cpp
Remove wxRTTI macro for wxComboBox from Motif port.
[wxWidgets.git] / src / gtk / menu.cpp
index 01bdcfaaea37e17333caeb0564eaa73c16673a37..51e23212bc16754f336a61f5766c83273cdaad6d 100644 (file)
@@ -17,6 +17,7 @@
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
     #include "wx/log.h"
+    #include "wx/dialog.h"
     #include "wx/frame.h"
     #include "wx/bitmap.h"
     #include "wx/app.h"
@@ -61,7 +62,8 @@ static bool IsMenuEventAllowed(wxMenu* menu)
         wxWindow* tlw = wxGetTopLevelParent(menu->GetWindow());
         if ( !tlw || !wxDynamicCast(tlw, wxDialog) )
         {
-            return true;
+            // This must be an event from a menu bar of one of the frames.
+            return false;
         }
     }