Let initial setting of Twice checkbox reflect current state
[xboard.git] / winboard / wsettings.c
index b3e41cd..545071c 100644 (file)
@@ -977,7 +977,7 @@ void TourneyPopup(HWND hwnd)
 {\r
     int n = NamesToList(firstChessProgramNames, engineList, engineMnemonic, "");\r
     autoinc = appData.loadGameIndex < 0 || appData.loadPositionIndex < 0;\r
-    twice = FALSE; swiss = appData.tourneyType < 0;\r
+    twice = appData.loadGameIndex == -2 || appData.loadPositionIndex == -2; swiss = appData.tourneyType < 0;\r
     tourneyOptions[0].max = n;\r
     snprintf(title, MSG_SIZ, _("Tournament and Match Options"));\r
     ASSIGN(tfName, appData.tourneyFile[0] ? appData.tourneyFile : MakeName(appData.defName));\r