Disable context menu trigger if the assigned menu is set to null
This commit is contained in:
parent
c001c6114f
commit
72cae92320
|
@ -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…
Reference in New Issue