If it's modal then we don't own the window. Just DismissModal().

Fixes https://gitlab.com/kicad/code/kicad/issues/5355
This commit is contained in:
Jeff Young 2020-08-25 23:31:21 +01:00
parent 45cae6405d
commit a55eaec28c
1 changed files with 0 additions and 2 deletions

View File

@ -713,8 +713,6 @@ void FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB( wxCommandEvent& aEvent )
{
DismissModal( false );
}
Close( true );
}
else if( GetBoard()->GetFirstModule() )
{