From 4e99bea34045f95fa146c9179ad378435e15d9fa Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Mon, 3 Aug 2015 20:55:05 +0200 Subject: [PATCH] Remember tourney-file changes after Continue Later 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 | 1 + winboard/wsettings.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dialogs.c b/dialogs.c index bdf775f..cf49bfa 100644 --- 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 } diff --git a/winboard/wsettings.c b/winboard/wsettings.c index ba9488b..f5a1f9b 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -898,6 +898,7 @@ void PseudoOK(HWND hDlg) if(appData.loadPositionIndex < 0) appData.loadPositionIndex = 0; } if(swiss) { appData.defaultMatchGames = 1; appData.tourneyType = -1; } + ASSIGN(appData.tourneyFile, tfName); } char *GetParticipants(HWND hDlg) -- 1.7.0.4