From: H.G.Muller Date: Mon, 3 Aug 2015 18:55:05 +0000 (+0200) Subject: Remember tourney-file changes after Continue Later X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=4e99bea34045f95fa146c9179ad378435e15d9fa 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. --- 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)