From: H.G. Muller Date: Tue, 5 Feb 2013 10:56:10 +0000 (+0100) Subject: Let initial setting of Twice checkbox reflect current state X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=484955a33287fdda17f4290e94e6e647c8a51f19;p=xboard.git Let initial setting of Twice checkbox reflect current state The Twice checkbox in the Tournament dialog of WinBoard was by default starting unticked. It is more convenient to have it preserve the current state, however, based on the -lpi or -lgi value. Like the auto-incremet checkbox already did. --- diff --git a/winboard/wsettings.c b/winboard/wsettings.c index b3e41cd..545071c 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -977,7 +977,7 @@ void TourneyPopup(HWND hwnd) { int n = NamesToList(firstChessProgramNames, engineList, engineMnemonic, ""); autoinc = appData.loadGameIndex < 0 || appData.loadPositionIndex < 0; - twice = FALSE; swiss = appData.tourneyType < 0; + twice = appData.loadGameIndex == -2 || appData.loadPositionIndex == -2; swiss = appData.tourneyType < 0; tourneyOptions[0].max = n; snprintf(title, MSG_SIZ, _("Tournament and Match Options")); ASSIGN(tfName, appData.tourneyFile[0] ? appData.tourneyFile : MakeName(appData.defName));