Code cleaning and finish to fix a crash under wxWidgets 2.9.2 and Linux.
This commit is contained in:
parent
401ea10e8f
commit
d5dbb53140
|
@ -470,8 +470,6 @@ void CVPCB_MAINFRAME::LoadNetList( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
SetTitle( wxGetApp().GetTitle() + wxT( " " ) + GetBuildVersion() );
|
SetTitle( wxGetApp().GetTitle() + wxT( " " ) + GetBuildVersion() );
|
||||||
}
|
}
|
||||||
|
|
||||||
ReCreateMenuBar();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -69,9 +69,6 @@ void WinEDA_App::MacOpenFile(const wxString &fileName)
|
||||||
{
|
{
|
||||||
frame->SetTitle( wxGetApp().GetTitle() + wxT( " " ) + GetBuildVersion() );
|
frame->SetTitle( wxGetApp().GetTitle() + wxT( " " ) + GetBuildVersion() );
|
||||||
}
|
}
|
||||||
|
|
||||||
frame->ReCreateMenuBar();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a new application object
|
// Create a new application object
|
||||||
|
|
|
@ -23,7 +23,7 @@ void CVPCB_MAINFRAME::ReCreateMenuBar()
|
||||||
wxMenuItem* item;
|
wxMenuItem* item;
|
||||||
wxMenuBar* menuBar = GetMenuBar();
|
wxMenuBar* menuBar = GetMenuBar();
|
||||||
|
|
||||||
if( ! menuBar )
|
if( ! menuBar ) // Delete all menus
|
||||||
menuBar = new wxMenuBar();
|
menuBar = new wxMenuBar();
|
||||||
|
|
||||||
// Delete all existing menus so they can be rebuilt.
|
// Delete all existing menus so they can be rebuilt.
|
||||||
|
|
Loading…
Reference in New Issue