From: jacob Date: Fri, 10 Feb 2006 20:57:40 +0000 (+0000) Subject: Oops. Since r6546, old "Special Commands" menus weren't being deleted from the X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/47d1dab7c8a0d34b5b07c0f7d9ee98edda4b6ec7 Oops. Since r6546, old "Special Commands" menus weren't being deleted from the context menu, and they tended to pile up. git-svn-id: svn://svn.tartarus.org/sgt/putty@6547 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/windows/window.c b/windows/window.c index 214866a8..aa805d23 100644 --- a/windows/window.c +++ b/windows/window.c @@ -968,15 +968,15 @@ void update_specials_menu(void *frontend) DeleteMenu(popup_menus[j].menu, specials_menu, MF_BYCOMMAND); DeleteMenu(popup_menus[j].menu, IDM_SPECIALSEP, MF_BYCOMMAND); } - if (specials) { + if (new_menu) { InsertMenu(popup_menus[j].menu, IDM_SHOWLOG, MF_BYCOMMAND | MF_POPUP | MF_ENABLED, (UINT) new_menu, "S&pecial Command"); InsertMenu(popup_menus[j].menu, IDM_SHOWLOG, MF_BYCOMMAND | MF_SEPARATOR, IDM_SPECIALSEP, 0); } - specials_menu = new_menu; } + specials_menu = new_menu; } static void update_mouse_pointer(void)