Pcbnew: Fix context menu when moving
The EDIT_TOOL is actually 'co-operating' with the SELECTION_TOOL by putting its tools into the SELECTION_TOOL's menu. This means the EDIT_TOOL::m_menu is sad and empty inside, and if you show it, it either doesn't show at all, or a tiny stub is shown.
This commit is contained in:
parent
f4f3f52fd4
commit
af74d2a746
|
@ -674,7 +674,7 @@ bool EDIT_TOOL::doMoveSelection( const TOOL_EVENT& aEvent, BOARD_COMMIT* aCommit
|
|||
}
|
||||
else if( evt->IsClick( BUT_RIGHT ) )
|
||||
{
|
||||
m_menu.ShowContextMenu( selection );
|
||||
m_selectionTool->GetToolMenu().ShowContextMenu( selection );
|
||||
}
|
||||
else if( evt->IsAction( &ACTIONS::undo ) || evt->IsAction( &ACTIONS::doDelete ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue