close ics analyze if user close analysis window + Display ics analyze action
authorDaniel Mehrmann <mehrmann>
Mon, 28 Jun 2004 21:10:23 +0000 (21:10 +0000)
committerDaniel Mehrmann <mehrmann>
Mon, 28 Jun 2004 21:10:23 +0000 (21:10 +0000)
xboard.c

index 8f1cff1..af116f0 100644 (file)
--- 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;