Code cleaning and finish to fix a crash under wxWidgets 2.9.2 and Linux.

This commit is contained in:
jean-pierre charras 2011-04-17 18:04:09 +02:00
parent 401ea10e8f
commit d5dbb53140
3 changed files with 1 additions and 6 deletions

View File

@ -470,8 +470,6 @@ void CVPCB_MAINFRAME::LoadNetList( wxCommandEvent& event )
{
SetTitle( wxGetApp().GetTitle() + wxT( " " ) + GetBuildVersion() );
}
ReCreateMenuBar();
}

View File

@ -69,9 +69,6 @@ void WinEDA_App::MacOpenFile(const wxString &fileName)
{
frame->SetTitle( wxGetApp().GetTitle() + wxT( " " ) + GetBuildVersion() );
}
frame->ReCreateMenuBar();
}
// Create a new application object

View File

@ -23,7 +23,7 @@ void CVPCB_MAINFRAME::ReCreateMenuBar()
wxMenuItem* item;
wxMenuBar* menuBar = GetMenuBar();
if( ! menuBar )
if( ! menuBar ) // Delete all menus
menuBar = new wxMenuBar();
// Delete all existing menus so they can be rebuilt.