From 63b978c1ff4db25c204b3f6626d47c0b1a1eec49 Mon Sep 17 00:00:00 2001 From: Daniel Mehrmann Date: Mon, 28 Jun 2004 18:26:28 +0000 Subject: [PATCH] close icsEngineAnalyze if user remove observe games from the list --- backend.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) 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; -- 1.7.0.4