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:
parent
bd85421daa
commit
5b9458f4c2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue