diff --git a/src/wx/guiinit.cpp b/src/wx/guiinit.cpp index 6075f6f5..44c3da10 100644 --- a/src/wx/guiinit.cpp +++ b/src/wx/guiinit.cpp @@ -2930,6 +2930,12 @@ bool MainFrame::BindControls() gdbmi->GetMenu()->Remove(gdbmi); gdbmi = NULL; #endif +#ifdef NO_LINK + // remove this item from the menu completely + wxMenuItem* linkmi = XRCITEM("LinkMenu"); + linkmi->GetMenu()->Remove(linkmi); + linkmi = NULL; +#endif // if a recent menu is present, save its location wxMenuItem* recentmi = XRCITEM("RecentMenu"); diff --git a/src/wx/xrc/MainMenu.xrc b/src/wx/xrc/MainMenu.xrc index 48a19686..5517bd3c 100644 --- a/src/wx/xrc/MainMenu.xrc +++ b/src/wx/xrc/MainMenu.xrc @@ -260,7 +260,7 @@ - +