Commit f0949baa authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regedit: Update handling of the 'Modify' menu items.

parent adf29868
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment