Fix a bug that crashes Pcbnew when closing Freeroute dialog ( Only happens with wxWidgets 2.9.1, but this was a bug)

This commit is contained in:
jean-pierre charras 2010-11-22 19:41:02 +01:00
parent 814f4e435e
commit c660028ba4
1 changed files with 2 additions and 4 deletions

View File

@ -25,7 +25,6 @@ void WinEDA_PcbFrame::Access_to_External_Tool( wxCommandEvent& event )
*/
{
DIALOG_FREEROUTE dialog( this );
dialog.ShowModal();
}
@ -134,8 +133,7 @@ void DIALOG_FREEROUTE::OnVisitButtonClick( wxCommandEvent& event )
void DIALOG_FREEROUTE::OnCancelButtonClick( wxCommandEvent& event )
{
D(printf("OnCancelClick\n");)
Close( true );
EndModal(wxID_CANCEL);
}
@ -147,7 +145,7 @@ void DIALOG_FREEROUTE::OnOKButtonClick( wxCommandEvent& event )
m_FreerouteURLName->GetValue() );
}
Destroy();
EndModal(wxID_OK);
}