From cbef46783d8c68cb6ce106fc278edf3446b720fc Mon Sep 17 00:00:00 2001 From: Daniel Mehrmann Date: Mon, 28 Jun 2004 21:10:23 +0000 Subject: [PATCH] close ics analyze if user close analysis window + Display ics analyze action --- xboard.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xboard.c b/xboard.c index 8f1cff1..af116f0 100644 --- a/xboard.c +++ b/xboard.c @@ -5029,6 +5029,8 @@ void AnalysisPopDown() XtPopdown(analysisShell); XSync(xDisplay, False); analysisUp = False; + /* icsEngineAnalyze */ + if (appData.icsEngineAnalyze) ExitAnalyzeMode(); } @@ -5878,7 +5880,6 @@ void AnalyzeModeProc(w, event, prms, nprms) if (appData.icsEngineAnalyze) { if (appData.debugMode) fprintf(debugFP, _("Found unexpected active ICS engine analyze \n")); - appData.icsEngineAnalyze = FALSE; ExitAnalyzeMode(); ModeHighlight(); return; @@ -5887,7 +5888,6 @@ void AnalyzeModeProc(w, event, prms, nprms) } else { /* if enable, use want disable icsEngineAnalyze */ if (appData.icsEngineAnalyze) { - appData.icsEngineAnalyze = FALSE; ExitAnalyzeMode(); ModeHighlight(); return; -- 1.7.0.4