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:
parent
814f4e435e
commit
c660028ba4
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue