Fix one click dialog footprint spreading picking up extra footprints.

This commit is contained in:
Jon Neal 2016-03-17 23:09:24 -04:00 committed by Chris Pavlina
parent 1c19699a7c
commit d66cc0fedc
1 changed files with 6 additions and 3 deletions

View File

@ -110,12 +110,15 @@ void DIALOG_UPDATE_PCB::PerformUpdate( bool aDryRun )
{
m_frame->SpreadFootprints( &newFootprints, false, false );
if( !newFootprints.empty() )
{
BOOST_FOREACH( MODULE* footprint, newFootprints )
{
toolManager->RunAction( COMMON_ACTIONS::selectItem, true, footprint );
}
toolManager->InvokeTool( "pcbnew.InteractiveEdit" );
}
}
m_btnPerformUpdate->Enable( false );