Don't crash when canceling initial setup in Manage Footprint Libraries

(cherry picked from commit 21103924f4)
This commit is contained in:
Alex 2023-04-13 22:16:56 +03:00 committed by dsa-t
parent 7843e6a709
commit fd42e493c0
1 changed files with 3 additions and 1 deletions

View File

@ -130,7 +130,9 @@ int COMMON_CONTROL::ShowLibraryTable( const TOOL_EVENT& aEvent )
try // Pcb frame was not available, try to start it try // Pcb frame was not available, try to start it
{ {
KIFACE* kiface = m_frame->Kiway().KiFACE( KIWAY::FACE_PCB ); KIFACE* kiface = m_frame->Kiway().KiFACE( KIWAY::FACE_PCB );
kiface->CreateKiWindow( m_frame, DIALOG_PCB_LIBRARY_TABLE, &m_frame->Kiway() );
if( kiface )
kiface->CreateKiWindow( m_frame, DIALOG_PCB_LIBRARY_TABLE, &m_frame->Kiway() );
} }
catch( ... ) catch( ... )
{ {