Workaround for special menu items not always being enabled. Use
with UI update events. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -156,7 +156,13 @@ void wxMenuItem::UpdateItemText()
|
||||
|
||||
void wxMenuItem::Enable(bool bDoEnable)
|
||||
{
|
||||
if ( m_isEnabled != bDoEnable )
|
||||
if ( m_isEnabled != bDoEnable
|
||||
#if TARGET_CARBON
|
||||
|| GetId() == wxApp::s_macPreferencesMenuItemId
|
||||
|| GetId() == wxApp::s_macExitMenuItemId
|
||||
|| GetId() == wxApp::s_macAboutMenuItemId
|
||||
#endif
|
||||
)
|
||||
{
|
||||
wxMenuItemBase::Enable( bDoEnable ) ;
|
||||
UpdateItemStatus() ;
|
||||
|
Reference in New Issue
Block a user