From 484955a33287fdda17f4290e94e6e647c8a51f19 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 5 Feb 2013 11:56:10 +0100 Subject: [PATCH] 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. --- winboard/wsettings.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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)); -- 1.7.0.4