From 370f3be0b45623d7d5f14309af6d4dbd2bb5f8a5 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 29 Jun 2011 20:25:00 +0200 Subject: [PATCH] Fix resetting searchTime if other TC mode is chosen (XB) This fixes a bug in the new time-control dialog. --- xoptions.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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; -- 1.7.0.4