#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"
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;
}
}