prevent empty context menu in CAD tool bar