Fix initial enables in TC dialog
authorH.G. Muller <h.g.muller@hccnet.nl>
Wed, 31 Oct 2012 17:18:02 +0000 (18:18 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Tue, 6 Nov 2012 11:45:07 +0000 (12:45 +0100)
dialogs.c

index af767e5..c4971d4 100644 (file)
--- a/dialogs.c
+++ b/dialogs.c
@@ -1400,6 +1400,7 @@ TimeControlProc ()
    tmpOdds1 = tmpOdds2 = 1; tcType = 0;
    tmpTc = atoi(appData.timeControl);
    GenericPopUp(tcOptions, _("Time Control"), TransientDlg, BoardWindow, MODAL, 0);
+   SetTcType(searchTime ? 2 : appData.timeIncrement < 0 ? 0 : 1);
 }
 
 //------------------------------- Ask Question -----------------------------------------