making sure enabling the menus works

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2009-01-10 20:00:59 +00:00
parent 3fe48198b5
commit fc7ba044ac

View File

@ -99,7 +99,9 @@ bool wxFrame::Enable(bool enable)
return false;
#if wxUSE_MENUS
if ( m_frameMenuBar && m_frameMenuBar == wxMenuBar::MacGetInstalledMenuBar() )
// we should always enable/disable the menubar, even if we are not current, otherwise
// we might miss some state change later (happened eg in the docview sample after PrintPreview)
if ( m_frameMenuBar /*&& m_frameMenuBar == wxMenuBar::MacGetInstalledMenuBar()*/)
{
int iMaxMenu = m_frameMenuBar->GetMenuCount();
for ( int i = 0 ; i < iMaxMenu ; ++ i )