[PATCH 4/4] regedit: Update handling of the 'Modify' menu items
Hugh McMaster
hugh.mcmaster at outlook.com
Sun Jun 4 19:58:24 CDT 2017
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
programs/regedit/framewnd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c
index d3dffdc..9853810 100644
--- a/programs/regedit/framewnd.c
+++ b/programs/regedit/framewnd.c
@@ -137,10 +137,11 @@ static void update_modify_items(HMENU hMenu, int index)
{
unsigned int state = MF_ENABLED;
- if (!g_pChildWnd->nFocusPanel || index == -1)
+ if (index == -1)
state = MF_GRAYED;
EnableMenuItem(hMenu, ID_EDIT_MODIFY, state | MF_BYCOMMAND);
+ EnableMenuItem(hMenu, ID_EDIT_MODIFY_BIN, state | MF_BYCOMMAND);
}
static void update_delete_and_rename_items(HMENU hMenu, WCHAR *keyName, int index)
--
2.7.4
More information about the wine-patches
mailing list