#endif // __WIN32__
// if we're already attached to the menubar, we must update it
- if ( IsAttached() )
+ if ( IsAttached() && m_menuBar->IsAttached() )
{
m_menuBar->Refresh();
}
wxLogLastError(wxT("RemoveMenu"));
}
- if ( IsAttached() )
+ if ( IsAttached() && m_menuBar->IsAttached() )
{
// otherwise, the chane won't be visible
m_menuBar->Refresh();