Enable WB time-control dialog even when no clock mode
authorH.G. Muller <h.g.muller@hccnet.nl>
Wed, 11 Jan 2012 11:34:39 +0000 (12:34 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Wed, 11 Jan 2012 11:34:39 +0000 (12:34 +0100)
The dialog could be called from the tournament dialog to set a TCfor
the tourney even when currently in game-viewer mode, so it'd better work.

winboard/woptions.c

index a11fe55..71ccea9 100644 (file)
@@ -2716,7 +2716,7 @@ TimeControl(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
     CenterWindow (hDlg, GetWindow (hDlg, GW_OWNER));\r
     Translate(hDlg, DLG_TimeControl);\r
     /* Initialize the dialog items */\r
-    if (appData.clockMode && !appData.icsActive) {\r
+    if (/*appData.clockMode &&*/ !appData.icsActive) { // [HGM] even if !clockMode, we could want to set it in tournament dialog\r
       if (searchTime) {\r
        CheckRadioButton(hDlg, OPT_TCUseMoves, OPT_TCUseFixed,\r
                         OPT_TCUseFixed);\r