X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8caf72d33efedf5252ffeb5177441b10f3a72141..4b04699b670b4ab4632229fa0264d154acd3bec1:/src/mac/menu.cpp?ds=sidebyside diff --git a/src/mac/menu.cpp b/src/mac/menu.cpp index e53992df98..1159391d37 100644 --- a/src/mac/menu.cpp +++ b/src/mac/menu.cpp @@ -613,13 +613,16 @@ void wxMenuBar::RebuildAccelTable() } #endif // wxUSE_ACCEL - - +#ifdef WXMAKINGDLL +extern short gCurrentResource ; +#endif void wxMenuBar::MacInstallMenuBar() { if ( s_macInstalledMenuBar == this ) return ; + wxStAppResource resload ; + Handle menubar = ::GetNewMBar( kwxMacMenuBarResource ) ; wxString message ; wxCHECK_RET( menubar != NULL, "can't read MBAR resource" ); @@ -632,7 +635,10 @@ void wxMenuBar::MacInstallMenuBar() MenuHandle menu = ::GetMenuHandle( kwxMacAppleMenuId ) ; #if TARGET_API_MAC_OS8 - ::AppendResMenu(menu, 'DRVR'); + if ( CountMenuItems( menu ) == 2 ) + { + ::AppendResMenu(menu, 'DRVR'); + } #endif for (int i = 0; i < m_menus.GetCount(); i++) @@ -733,7 +739,6 @@ void wxMenuBar::MacInstallMenuBar() } } ::DrawMenuBar() ; - s_macInstalledMenuBar = this; }