Author Topic: BUG: SlickC error occurs when right-click on the Workspace node in project tree  (Read 3368 times)

Ding Zhaojie

  • Senior Community Member
  • Posts: 194
  • Hero Points: 37
I got a SlickC error each time I right-click on the Workspace node in project tree. So I looked the ptoolbar.e, than I found in AddVCMenu, it tries to copy the VC menu from _ext_menu_default. But I deleted the Version Control sub menu in _ext_menu_default because I don't use the integrated VC in SE. So it should fix like this:

Code: [Select]
int temp=find_index("_ext_menu_default",oi2type(OI_MENU));
int src_vc_index=_menu_find_caption(temp,"Version Control");

if (src_vc_index == 0) {
_menu_insert(vc_menu_handle,-1,MF_ENABLED,'-',0);
return;
}

int child=src_vc_index.p_child;