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:
parent
45cae6405d
commit
a55eaec28c
|
@ -713,8 +713,6 @@ void FOOTPRINT_VIEWER_FRAME::AddFootprintToPCB( wxCommandEvent& aEvent )
|
|||
{
|
||||
DismissModal( false );
|
||||
}
|
||||
|
||||
Close( true );
|
||||
}
|
||||
else if( GetBoard()->GetFirstModule() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue