From 79905104bfab0a345e551c66b2e56fe4b4a69acf Mon Sep 17 00:00:00 2001 From: Daniel Mehrmann Date: Mon, 28 Jun 2004 18:23:14 +0000 Subject: [PATCH] bugfix: User close analysis windows while active ics analyze + message shows action --- winboard/winboard.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/winboard/winboard.c b/winboard/winboard.c index 034e598..55a5b00 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -3652,7 +3652,6 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) if (appData.icsEngineAnalyze) { if (appData.debugMode) fprintf(debugFP, "Found unexpected active ICS engine analyze \n"); - appData.icsEngineAnalyze = FALSE; ExitAnalyzeMode(); ModeHighlight(); break; @@ -3661,7 +3660,6 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) } else { /* if enable, user want disable icsEngineAnalyze */ if (appData.icsEngineAnalyze) { - appData.icsEngineAnalyze = FALSE; ExitAnalyzeMode(); ModeHighlight(); break; @@ -7614,6 +7612,12 @@ AnalysisDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) case WM_COMMAND: /* message: received a command */ switch (LOWORD(wParam)) { case IDCANCEL: + /* icsEngineAnalyze */ + if (appData.icsActive && appData.icsEngineAnalyze) { + ExitAnalyzeMode(); + ModeHighlight(); + return TRUE; + } EditGameEvent(); return TRUE; default: -- 1.7.0.4