Browse Source

Disable context menu trigger if the assigned menu is set to null

pull/3/merge
Maciej Suminski 9 years ago
parent
commit
72cae92320
  1. 2
      common/tool/tool_interactive.cpp

2
common/tool/tool_interactive.cpp

@ -68,6 +68,8 @@ void TOOL_INTERACTIVE::SetContextMenu( CONTEXT_MENU* aMenu, CONTEXT_MENU_TRIGGER
{
if( aMenu )
aMenu->SetTool( this );
else
aTrigger = CMENU_OFF;
m_toolMgr->ScheduleContextMenu( this, aMenu, aTrigger );
}

Loading…
Cancel
Save