Browse Source

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

pull/1/head
jean-pierre charras 15 years ago
parent
commit
d5dbb53140
  1. 2
      cvpcb/cvframe.cpp
  2. 3
      cvpcb/cvpcb.cpp
  3. 2
      cvpcb/menubar.cpp

2
cvpcb/cvframe.cpp

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

3
cvpcb/cvpcb.cpp

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

2
cvpcb/menubar.cpp

@ -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.

Loading…
Cancel
Save