From: H.G. Muller Date: Mon, 3 Jan 2011 11:50:54 +0000 (+0100) Subject: Fix spurious reading of old game title by JAWS X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=564d40aef12b1927f48cf1561ec3199462f8e583;p=xboard.git Fix spurious reading of old game title by JAWS Because focus was switched to the board window before loading the selected game from the game list, the titlebar still contained the name of the previously loaded game, which would spontaneously be read by JAWS. Now the focus switch is done after loading the new game (which updates the window title.) --- diff --git a/winboard/wgamelist.c b/winboard/wgamelist.c index e13bcf0..2300fda 100644 --- a/winboard/wgamelist.c +++ b/winboard/wgamelist.c @@ -359,8 +359,8 @@ GameListDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) CmailLoadGame(gameFile, nItem + 1, gameFileName, TRUE); } else { - SetFocus(hwndMain); // [HGM] automatic focus switch LoadGame(gameFile, nItem + 1, gameFileName, TRUE); + SetFocus(hwndMain); // [HGM] automatic focus switch } }