Ignore Continue Later when match already in progress
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 3 Aug 2015 19:07:04 +0000 (21:07 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 3 Aug 2015 19:07:04 +0000 (21:07 +0200)
We have to prevent the user from changing the tournament file or parameters
for a tourney in progress through pressing 'Continue Later'.

dialogs.c
winboard/wsettings.c

index cf49bfa..cb9b298 100644 (file)
--- a/dialogs.c
+++ b/dialogs.c
@@ -331,6 +331,7 @@ UpgradeParticipant ()
 static void
 PseudoOK ()
 {
+    if(matchMode) return;
     GenericReadout(matchOptions, -2); // read all, but suppress calling of MatchOK
     ASSIGN(appData.participants, engineName);
     ASSIGN(appData.tourneyFile, tfName);
index f5a1f9b..eb04e41 100644 (file)
@@ -886,6 +886,7 @@ int MatchOK()
 \r
 void PseudoOK(HWND hDlg)\r
 {\r
+    if(matchMode) return;\r
     okFunc = 0;\r
     GetOptionValues(hDlg, activeCps, activeList);\r
     EndDialog( hDlg, 0 );\r