Pcbnew: Clear tool and selection before updating PCB from schematic
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9196
This commit is contained in:
parent
91e456113f
commit
65c9170b46
|
@ -99,6 +99,12 @@ void DIALOG_UPDATE_PCB::PerformUpdate( bool aDryRun )
|
||||||
m_netlist->SetFindByTimeStamp( !m_cbRelinkFootprints->GetValue() );
|
m_netlist->SetFindByTimeStamp( !m_cbRelinkFootprints->GetValue() );
|
||||||
m_netlist->SetReplaceFootprints( m_cbUpdateFootprints->GetValue() );
|
m_netlist->SetReplaceFootprints( m_cbUpdateFootprints->GetValue() );
|
||||||
|
|
||||||
|
if( !aDryRun )
|
||||||
|
{
|
||||||
|
m_frame->GetToolManager()->DeactivateTool();
|
||||||
|
m_frame->GetToolManager()->RunAction( PCB_ACTIONS::selectionClear, true );
|
||||||
|
}
|
||||||
|
|
||||||
BOARD_NETLIST_UPDATER updater( m_frame, m_frame->GetBoard() );
|
BOARD_NETLIST_UPDATER updater( m_frame, m_frame->GetBoard() );
|
||||||
updater.SetReporter ( &reporter );
|
updater.SetReporter ( &reporter );
|
||||||
updater.SetIsDryRun( aDryRun );
|
updater.SetIsDryRun( aDryRun );
|
||||||
|
|
Loading…
Reference in New Issue