Don't delegate context menu to Selection Tool.

Our superclass can handle it more correctly (including the Cancel
item at the top).
This commit is contained in:
Jeff Young 2018-11-19 11:25:23 +00:00
parent bd85421daa
commit 5b9458f4c2
1 changed files with 2 additions and 3 deletions

View File

@ -252,10 +252,9 @@ int MODULE_EDITOR_TOOLS::EnumeratePads( const TOOL_EVENT& aEvent )
break;
}
else
else if( evt->IsClick( BUT_RIGHT ) )
{
// Delegate BUT_RIGHT, etc. to SELECTION_TOOL
m_toolMgr->PassEvent();
m_menu.ShowContextMenu();
}
// Prepare the next loop by updating the old cursor mouse position