|
|
|
@ -77,9 +77,7 @@ int COMMON_CONTROL::ConfigurePaths( const TOOL_EVENT& aEvent ) |
|
|
|
{ |
|
|
|
// If _pcbnew.kiface is running have it put up the dialog so the 3D paths can also
|
|
|
|
// be edited
|
|
|
|
KIFACE* pcbnew = m_frame->Kiway().KiFACE( KIWAY::FACE_PCB, false ); |
|
|
|
|
|
|
|
if( pcbnew ) |
|
|
|
if( KIFACE* pcbnew = m_frame->Kiway().KiFACE( KIWAY::FACE_PCB, false ) ) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
@ -109,9 +107,7 @@ int COMMON_CONTROL::ShowLibraryTable( const TOOL_EVENT& aEvent ) |
|
|
|
{ |
|
|
|
try // Sch frame was not available, try to start it
|
|
|
|
{ |
|
|
|
KIFACE* kiface = m_frame->Kiway().KiFACE( KIWAY::FACE_SCH ); |
|
|
|
|
|
|
|
if( kiface ) |
|
|
|
if( KIFACE* kiface = m_frame->Kiway().KiFACE( KIWAY::FACE_SCH ) ) |
|
|
|
kiface->CreateKiWindow( m_frame, DIALOG_SCH_LIBRARY_TABLE, &m_frame->Kiway() ); |
|
|
|
} |
|
|
|
catch( ... ) |
|
|
|
@ -125,9 +121,7 @@ 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 ); |
|
|
|
|
|
|
|
if( kiface ) |
|
|
|
if( KIFACE* kiface = m_frame->Kiway().KiFACE( KIWAY::FACE_PCB ) ) |
|
|
|
kiface->CreateKiWindow( m_frame, DIALOG_PCB_LIBRARY_TABLE, &m_frame->Kiway() ); |
|
|
|
} |
|
|
|
catch( ... ) |
|
|
|
@ -141,9 +135,7 @@ int COMMON_CONTROL::ShowLibraryTable( const TOOL_EVENT& aEvent ) |
|
|
|
{ |
|
|
|
try // Kicad frame was not available, try to start it
|
|
|
|
{ |
|
|
|
KIFACE* kiface = m_frame->Kiway().KiFACE( KIWAY::FACE_SCH ); |
|
|
|
|
|
|
|
if( kiface ) |
|
|
|
if( KIFACE* kiface = m_frame->Kiway().KiFACE( KIWAY::FACE_SCH ) ) |
|
|
|
kiface->CreateKiWindow( m_frame, DIALOG_DESIGN_BLOCK_LIBRARY_TABLE, &m_frame->Kiway() ); |
|
|
|
} |
|
|
|
catch( ... ) |
|
|
|
|