using callback for menu enabling, allows to benefit from system menu disabling eg for modal dialogs, see #14177

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2012-06-12 00:23:22 +00:00
parent 2f9d199130
commit 9651e41c1c

View File

@@ -155,7 +155,6 @@ public :
} }
[menu setDelegate:controller]; [menu setDelegate:controller];
[m_osxMenu setImplementation:this]; [m_osxMenu setImplementation:this];
[menu setAutoenablesItems:NO];
// gc aware // gc aware
if ( m_osxMenu ) if ( m_osxMenu )
CFRetain(m_osxMenu); CFRetain(m_osxMenu);