From: H.G. Muller Date: Wed, 29 Jun 2011 18:25:00 +0000 (+0200) Subject: Fix resetting searchTime if other TC mode is chosen (XB) X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=370f3be0b45623d7d5f14309af6d4dbd2bb5f8a5;p=xboard.git Fix resetting searchTime if other TC mode is chosen (XB) This fixes a bug in the new time-control dialog. --- diff --git a/xoptions.c b/xoptions.c index 726dcc7..cd761d4 100644 --- a/xoptions.c +++ b/xoptions.c @@ -1680,6 +1680,7 @@ int TcOK(int n) if(tcType == 0 && tmpMoves <= 0) return 0; if(tcType == 2 && tmpInc <= 0) return 0; GetWidgetText(¤tOption[4], &tc); // get original text, in case it is min:sec + searchTime = 0; switch(tcType) { case 0: if(!ParseTimeControl(tc, -1, tmpMoves)) return 0;