projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
0370d2f
)
Fix resetting searchTime if other TC mode is chosen (XB)
author
H.G. Muller
<h.g.muller@hccnet.nl>
Wed, 29 Jun 2011 18:25:00 +0000 (20:25 +0200)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Wed, 29 Jun 2011 18:25:00 +0000 (20:25 +0200)
This fixes a bug in the new time-control dialog.
xoptions.c
patch
|
blob
|
history
diff --git
a/xoptions.c
b/xoptions.c
index
726dcc7
..
cd761d4
100644
(file)
--- 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;