avoid system pop-up menu commands being handled by wxApp, bug was shown in printing, using File->Print and changing Popup from 'Copies & Pages' to eg 'Layout'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4db6714b16
commit
6e644ef2d3
@ -453,7 +453,15 @@ static pascal OSStatus wxMacAppCommandEventHandler( EventHandlerCallRef handler
|
||||
}
|
||||
else if ( id != 0 && command.menu.menuRef != 0 && command.menu.menuItemIndex != 0 )
|
||||
{
|
||||
GetMenuItemRefCon( command.menu.menuRef , command.menu.menuItemIndex , (UInt32*) &item ) ;
|
||||
wxMenu* itsMenu = NULL ;
|
||||
UInt32 refCon ;
|
||||
GetMenuItemRefCon( command.menu.menuRef , command.menu.menuItemIndex , &refCon ) ;
|
||||
// make sure it is one of our own menus, otherwise don't touch
|
||||
itsMenu = wxFindMenuFromMacMenu( command.menu.menuRef ) ;
|
||||
if ( itsMenu != NULL )
|
||||
{
|
||||
item = (wxMenuItem*) refCon ;
|
||||
}
|
||||
}
|
||||
|
||||
if ( item )
|
||||
|
Loading…
Reference in New Issue
Block a user