pcbnew: only update cursor instead of activating selection tool when quiting delete tool

Fixes: https://gitlab.com/kicad/code/kicad/issues/7531
This commit is contained in:
Zoltan Gyarmati 2021-02-18 20:47:04 +01:00
parent 881cb3182b
commit 5a0a2a8366
1 changed files with 3 additions and 2 deletions

View File

@ -545,8 +545,9 @@ int PCB_CONTROL::DeleteItemCursor( const TOOL_EVENT& aEvent )
if( m_pickerItem ) if( m_pickerItem )
m_toolMgr->GetTool<PCB_SELECTION_TOOL>()->UnbrightenItem( m_pickerItem ); m_toolMgr->GetTool<PCB_SELECTION_TOOL>()->UnbrightenItem( m_pickerItem );
// Wake the selection tool after exiting to ensure the cursor gets updated // Ensure the cursor gets changed&updated
m_toolMgr->RunAction( PCB_ACTIONS::selectionActivate, false ); m_frame->GetCanvas()->SetCurrentCursor( KICURSOR::ARROW );
m_frame->GetCanvas()->Refresh();
} ); } );
m_toolMgr->RunAction( ACTIONS::pickerTool, true, &tool ); m_toolMgr->RunAction( ACTIONS::pickerTool, true, &tool );