1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 09:12:24 +00:00

Oops. Since r6546, old "Special Commands" menus weren't being deleted from the

context menu, and they tended to pile up.

[originally from svn r6547]
[r6546 == 3cdf5b739f]
This commit is contained in:
Jacob Nevins 2006-02-10 20:57:40 +00:00
parent 3cdf5b739f
commit ef2db06457

View File

@ -968,15 +968,15 @@ void update_specials_menu(void *frontend)
DeleteMenu(popup_menus[j].menu, specials_menu, MF_BYCOMMAND); DeleteMenu(popup_menus[j].menu, specials_menu, MF_BYCOMMAND);
DeleteMenu(popup_menus[j].menu, IDM_SPECIALSEP, MF_BYCOMMAND); DeleteMenu(popup_menus[j].menu, IDM_SPECIALSEP, MF_BYCOMMAND);
} }
if (specials) { if (new_menu) {
InsertMenu(popup_menus[j].menu, IDM_SHOWLOG, InsertMenu(popup_menus[j].menu, IDM_SHOWLOG,
MF_BYCOMMAND | MF_POPUP | MF_ENABLED, MF_BYCOMMAND | MF_POPUP | MF_ENABLED,
(UINT) new_menu, "S&pecial Command"); (UINT) new_menu, "S&pecial Command");
InsertMenu(popup_menus[j].menu, IDM_SHOWLOG, InsertMenu(popup_menus[j].menu, IDM_SHOWLOG,
MF_BYCOMMAND | MF_SEPARATOR, IDM_SPECIALSEP, 0); MF_BYCOMMAND | MF_SEPARATOR, IDM_SPECIALSEP, 0);
} }
specials_menu = new_menu;
} }
specials_menu = new_menu;
} }
static void update_mouse_pointer(void) static void update_mouse_pointer(void)