]> git.saurik.com Git - wxWidgets.git/commitdiff
Return wx menu items inserted into the Window system menu, similar to what we do...
authorKevin Ollivier <kevino@theolliviers.com>
Sat, 21 Apr 2007 23:01:28 +0000 (23:01 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Sat, 21 Apr 2007 23:01:28 +0000 (23:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/app.cpp

index 4f1c4734653230995412da2a80d27b63c95ca0e7..683d9c7401786ff1271228917bb942245fc58857 100644 (file)
@@ -494,7 +494,8 @@ wxMenu* wxFindMenuFromMacCommand( const HICommand &command , wxMenuItem* &item )
 
         // is it part of the application or the Help menu, then look for the id directly
         if ( ( GetMenuHandle( kwxMacAppleMenuId ) != NULL && command.menu.menuRef == GetMenuHandle( kwxMacAppleMenuId ) ) ||
-             ( helpMenuHandle != NULL && command.menu.menuRef == helpMenuHandle ) )
+             ( helpMenuHandle != NULL && command.menu.menuRef == helpMenuHandle ) || 
+             wxMenuBar::MacGetWindowMenuHMenu() != NULL && command.menu.menuRef == wxMenuBar::MacGetWindowMenuHMenu() )
         {
             wxMenuBar* mbar = wxMenuBar::MacGetInstalledMenuBar() ;
             if ( mbar )