Commit c660028b authored by jean-pierre charras's avatar jean-pierre charras

Fix a bug that crashes Pcbnew when closing Freeroute dialog ( Only happens...

Fix a bug that crashes Pcbnew when closing Freeroute dialog ( Only happens with wxWidgets 2.9.1, but this was a bug)
parent 814f4e43
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment