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

This commit is contained in:
Maciej Suminski 2017-02-24 12:46:49 +01:00
parent c001c6114f
commit 72cae92320
1 changed files with 2 additions and 0 deletions

View File

@ -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 );
}