PCB updater: spread footprints after updating netlist

This commit is contained in:
Tomasz Włostowski 2016-03-16 23:05:08 -04:00 committed by Chris Pavlina
parent 5de85450b8
commit aa5a1d1898
1 changed files with 14 additions and 0 deletions

View File

@ -105,8 +105,22 @@ void DIALOG_UPDATE_PCB::PerformUpdate( bool aDryRun )
m_frame->SetMsgPanel( board );
if( m_frame->IsGalCanvasActive() )
{
m_frame->SpreadFootprints( &newFootprints, false, false );
BOOST_FOREACH( MODULE* footprint, newFootprints )
{
toolManager->RunAction( COMMON_ACTIONS::selectItem, true, footprint );
}
toolManager->InvokeTool( "pcbnew.InteractiveEdit" );
}
m_btnPerformUpdate->Enable( false );
m_btnPerformUpdate->SetLabel( _( "Update complete" ) );
m_btnCancel->SetLabel ( _("Close") );
m_btnCancel->SetFocus();
}