From: H.G. Muller Date: Thu, 7 Mar 2013 16:48:45 +0000 (+0100) Subject: Fix spurious popup after batch-mode Analyze Game X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=b41c7cb49ab2482d484a87d18a330f10db4e5cb4;p=xboard.git Fix spurious popup after batch-mode Analyze Game A batch analysis of games was not properly terminated, because the game mode was tested after it had already been changed. No oldGameMode is tested in stead. --- diff --git a/backend.c b/backend.c index 9689ab9..0c555f9 100644 --- a/backend.c +++ b/backend.c @@ -12043,7 +12043,7 @@ LoadGame (FILE *f, int gameNumber, char *title, int useList) gn = 1; } else { - if(gameMode == AnalyzeFile && appData.loadGameIndex == -1) + if(oldGameMode == AnalyzeFile && appData.loadGameIndex == -1) appData.loadGameIndex = 0; // [HGM] suppress error message if we reach file end after auto-stepping analysis else DisplayError(_("Game number out of range"), 0);