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:
@@ -1222,6 +1222,8 @@ void wxApp::OnIdle(wxIdleEvent& event)
|
||||
wxMacProcessNotifierAndPendingEvents();
|
||||
|
||||
s_inOnIdle = FALSE;
|
||||
if(!wxMenuBar::MacGetInstalledMenuBar() && wxMenuBar::MacGetCommonMenuBar())
|
||||
wxMenuBar::MacGetCommonMenuBar()->MacInstallMenuBar();
|
||||
}
|
||||
|
||||
void wxWakeUpIdle()
|
||||
|
@@ -1222,6 +1222,8 @@ void wxApp::OnIdle(wxIdleEvent& event)
|
||||
wxMacProcessNotifierAndPendingEvents();
|
||||
|
||||
s_inOnIdle = FALSE;
|
||||
if(!wxMenuBar::MacGetInstalledMenuBar() && wxMenuBar::MacGetCommonMenuBar())
|
||||
wxMenuBar::MacGetCommonMenuBar()->MacInstallMenuBar();
|
||||
}
|
||||
|
||||
void wxWakeUpIdle()
|
||||
|
Reference in New Issue
Block a user