Instead of m_menuBar use GetMenuBar() which will be modified (with next patch)
to traverse up the menu hierarchy to return the menu bar. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1235,10 +1235,10 @@ void wxMenu::Detach()
|
||||
|
||||
wxWindow *wxMenu::GetRootWindow() const
|
||||
{
|
||||
if ( m_menuBar )
|
||||
if ( GetMenuBar() )
|
||||
{
|
||||
// simple case - a normal menu attached to the menubar
|
||||
return m_menuBar;
|
||||
return GetMenuBar();
|
||||
}
|
||||
|
||||
// we're a popup menu but the trouble is that only the top level popup menu
|
||||
|
Reference in New Issue
Block a user