X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68a335b43ba9358c29801a638313c826a2c96c90..2a45803fc3877afd0ae3ce356dfe216505165882:/src/gtk/menu.cpp?ds=sidebyside diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 01bdcfaaea..51e23212bc 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -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; } }