From: Daniel Mehrmann Date: Mon, 28 Jun 2004 18:26:28 +0000 (+0000) Subject: close icsEngineAnalyze if user remove observe games from the list X-Git-Tag: v4.2.8~29 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=63b978c1ff4db25c204b3f6626d47c0b1a1eec49;p=xboard.git close icsEngineAnalyze if user remove observe games from the list --- diff --git a/backend.c b/backend.c index aaa20a5..3a9829f 100644 --- a/backend.c +++ b/backend.c @@ -2445,6 +2445,11 @@ read_from_ics(isr, closure, data, count, error) if (gameMode == IcsObserving && atoi(star_match[0]) == ics_gamenum) { + /* icsEngineAnalyze */ + if (appData.icsEngineAnalyze) { + ExitAnalyzeMode(); + ModeHighlight(); + } StopClocks(); gameMode = IcsIdle; ics_gamenum = -1; @@ -7787,9 +7792,10 @@ void ExitAnalyzeMode() { /* icsEngineAnalyze - possible call from other functions */ - if (appData.icsEngineAnalyze) + if (appData.icsEngineAnalyze) { appData.icsEngineAnalyze = FALSE; - + DisplayMessage("","Close ICS engine analyze..."); + } if (first.analysisSupport && first.analyzing) { SendToProgram("exit\n", &first); first.analyzing = FALSE;