Remember tourney-file changes after Continue Later
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 3 Aug 2015 18:55:05 +0000 (20:55 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 3 Aug 2015 18:55:05 +0000 (20:55 +0200)
After leavingthe Tournament dOptions dialog with Continue Later,
the tournament file would not be set to the entered value, and re-opening
the dialog would keep using the previous value, or a newly generated one.

dialogs.c
winboard/wsettings.c

index bdf775f..cf49bfa 100644 (file)
--- a/dialogs.c
+++ b/dialogs.c
@@ -333,6 +333,7 @@ PseudoOK ()
 {
     GenericReadout(matchOptions, -2); // read all, but suppress calling of MatchOK
     ASSIGN(appData.participants, engineName);
+    ASSIGN(appData.tourneyFile, tfName);
     PopDown(MasterDlg); // early popdown to prevent FreezeUI called through MatchEvent from causing XtGrab warning
 }
 
index ba9488b..f5a1f9b 100644 (file)
@@ -898,6 +898,7 @@ void PseudoOK(HWND hDlg)
        if(appData.loadPositionIndex < 0) appData.loadPositionIndex = 0;\r
     }\r
     if(swiss) { appData.defaultMatchGames = 1; appData.tourneyType = -1; }\r
+    ASSIGN(appData.tourneyFile, tfName);\r
 }\r
 \r
 char *GetParticipants(HWND hDlg)\r