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.

(cherry picked from commit 0091b9f897)
This commit is contained in:
Jeff Young 2023-06-04 23:00:44 +01:00
parent bc0a53a226
commit 32626970a0
1 changed files with 1 additions and 1 deletions

View File

@ -811,7 +811,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 );
}