Cancel interactive tools when entering DRC.
Fixes: lp:1541526 * https://bugs.launchpad.net/kicad/+bug/1541526
This commit is contained in:
parent
fb31bc1ca7
commit
a1a4275e8b
|
@ -70,9 +70,13 @@ void DRC::ShowDRCDialog( wxWindow* aParent )
|
|||
aParent = m_pcbEditorFrame;
|
||||
}
|
||||
|
||||
TOOL_MANAGER* toolMgr = m_pcbEditorFrame->GetToolManager();
|
||||
toolMgr->RunAction( ACTIONS::cancelInteractive, true );
|
||||
toolMgr->DeactivateTool();
|
||||
toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
|
||||
|
||||
if( !m_drcDialog )
|
||||
{
|
||||
m_pcbEditorFrame->GetToolManager()->RunAction( PCB_ACTIONS::selectionClear, true );
|
||||
m_drcDialog = new DIALOG_DRC_CONTROL( this, m_pcbEditorFrame, aParent );
|
||||
updatePointers();
|
||||
|
||||
|
|
Loading…
Reference in New Issue