In wxApp::OnIdle() check to see if there is not a current menubar and if

there is a common menubar, install it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-06-19 18:20:26 +00:00
parent 1b1d2207ea
commit 3fdac2ab39
2 changed files with 4 additions and 0 deletions

View File

@@ -1222,6 +1222,8 @@ void wxApp::OnIdle(wxIdleEvent& event)
wxMacProcessNotifierAndPendingEvents();
s_inOnIdle = FALSE;
if(!wxMenuBar::MacGetInstalledMenuBar() && wxMenuBar::MacGetCommonMenuBar())
wxMenuBar::MacGetCommonMenuBar()->MacInstallMenuBar();
}
void wxWakeUpIdle()

View File

@@ -1222,6 +1222,8 @@ void wxApp::OnIdle(wxIdleEvent& event)
wxMacProcessNotifierAndPendingEvents();
s_inOnIdle = FALSE;
if(!wxMenuBar::MacGetInstalledMenuBar() && wxMenuBar::MacGetCommonMenuBar())
wxMenuBar::MacGetCommonMenuBar()->MacInstallMenuBar();
}
void wxWakeUpIdle()