Prevent Sentry KICAD-MM crash.
It'd be nicer to know what happens, but we don't have a reproducible case, so this "fix" will at least prevent that particular crash.
This commit is contained in:
parent
1528f4700c
commit
0091b9f897
|
@ -844,7 +844,7 @@ void FOOTPRINT_EDIT_FRAME::OnUpdateLoadFootprintFromBoard( wxUpdateUIEvent& aEve
|
|||
{
|
||||
PCB_EDIT_FRAME* frame = (PCB_EDIT_FRAME*) Kiway().Player( FRAME_PCB_EDITOR, false );
|
||||
|
||||
aEvent.Enable( frame && frame->GetBoard()->GetFirstFootprint() != nullptr );
|
||||
aEvent.Enable( frame != nullptr );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue