Browse Source

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

newinvert
Alex 3 years ago
parent
commit
21103924f4
  1. 4
      common/tool/common_control.cpp

4
common/tool/common_control.cpp

@ -130,7 +130,9 @@ int COMMON_CONTROL::ShowLibraryTable( const TOOL_EVENT& aEvent )
try // Pcb frame was not available, try to start it
{
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( ... )
{

Loading…
Cancel
Save