From d25f268b1d5df5caa0e128756176aa7403b587ce Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 1 Mar 2013 12:50:06 +0100 Subject: [PATCH] Fix fatal error on unsupported board size When a board size unsupported by the engine was requested through the New Variant dialog, this was discovered while the dialog was still up, causing the error message to pop up as a child of the New Variant dialog, so that it would immediately be taken down as the latter closed. As a result it could not be confirmed, so that XBoard would not exit, and was left in a pathologic state (ignoring window-close). This is fixed by performing Reset (which detects the error) after PopDown of New Variant. --- dialogs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dialogs.c b/dialogs.c index 5412018..bed4610 100644 --- a/dialogs.c +++ b/dialogs.c @@ -477,8 +477,8 @@ Pick (int n) appData.pieceToCharTable = NULL; appData.pieceNickNames = ""; appData.colorNickNames = ""; - Reset(True, True); PopDown(TransientDlg); + Reset(True, True); return; } -- 1.7.0.4