From: H.G. Muller Date: Mon, 23 Aug 2010 10:43:27 +0000 (+0200) Subject: Do not exit after match when match started from menu X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=240d6d730bdd00e94d70a589e352e8eb4eb9a174;p=xboard.git Do not exit after match when match started from menu The codelooks weird, but matchMode == 2 in this case. We then use DisplayNote() to report the match result. --- diff --git a/backend.c b/backend.c index 3c21f9d..92df2bb 100644 --- a/backend.c +++ b/backend.c @@ -9366,7 +9366,12 @@ GameEnds(result, resultDetails, whosays) gameMode = nextGameMode; ModeHighlight(); endingGame = 0; /* [HGM] crash */ - if(popupRequested) DisplayFatalError(buf, 0, 0); // [HGM] crash: this call GameEnds recursively through ExitEvent! Make it a harmless tail recursion. + if(popupRequested) { // [HGM] crash: this calls GameEnds recursively through ExitEvent! Make it a harmless tail recursion. + if(matchMode == TRUE) DisplayFatalError(buf, 0, 0); else { + matchMode = FALSE; appData.matchGames = matchGame = 0; + DisplayNote(buf); + } + } } /* Assumes program was just initialized (initString sent).