From: H.G. Muller Date: Fri, 3 Dec 2010 21:44:02 +0000 (+0100) Subject: Fix Edit Game/Position checkmarking in WinBoard X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=33b7a136d720760819e42f589dcf6262a6dd4a21;p=xboard.git Fix Edit Game/Position checkmarking in WinBoard Because the entries in Edit and Mode menu were pure duplicats, the entries in the wrong menu (Edit) were checkmarked while active. By defining different IDs for those in the Edit menu, those in the Mode menu are checkmarked again. --- diff --git a/winboard/resource.h b/winboard/resource.h index e063e42..33b3875 100644 --- a/winboard/resource.h +++ b/winboard/resource.h @@ -31,6 +31,8 @@ #define IDM_TimeControl 131 #define IDM_LoadOptions 132 #define IDM_SaveOptions 133 +#define IDM_EditGame2 134 +#define IDM_EditPosition2 135 #define IDM_CommPort 147 #define IDM_EditComment 148 #define IDM_LoadNextGame 149 diff --git a/winboard/winboard.c b/winboard/winboard.c index 24fa20e..ad257f9 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -4904,11 +4904,13 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) break; case IDM_EditGame: + case IDM_EditGame2: EditGameEvent(); SAY("edit game"); break; case IDM_EditPosition: + case IDM_EditPosition2: EditPositionEvent(); SAY("enter a FEN string or setup a position on the board using the control R pop up menu"); break; diff --git a/winboard/winboard.rc b/winboard/winboard.rc index ca8624f..5bda4ec 100644 --- a/winboard/winboard.rc +++ b/winboard/winboard.rc @@ -1131,8 +1131,8 @@ BEGIN MENUITEM "P&aste Position From Clipboard\tCtrl+Shift+V", IDM_PasteAny MENUITEM SEPARATOR - MENUITEM "&Edit Game\tCtrl+E", IDM_EditGame - MENUITEM "E&dit Position\tCtrl+Shift+E",IDM_EditPosition + MENUITEM "&Edit Game\tCtrl+E", IDM_EditGame2 + MENUITEM "E&dit Position\tCtrl+Shift+E",IDM_EditPosition2 MENUITEM SEPARATOR MENUITEM "Edit Ta&gs...", IDM_EditTags MENUITEM "Edit &Comment...", IDM_EditComment