projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7a48fde
)
Display note in stead of empty engine-settings dialog XB
author
H.G. Muller
<h.g.muller@hccnet.nl>
Wed, 4 May 2011 13:42:26 +0000 (15:42 +0200)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Wed, 4 May 2011 16:42:12 +0000 (18:42 +0200)
xoptions.c
patch
|
blob
|
history
diff --git
a/xoptions.c
b/xoptions.c
index
8841dca
..
a2aee19
100644
(file)
--- a/
xoptions.c
+++ b/
xoptions.c
@@
-1330,6
+1330,7
@@
GenericPopUp(Option *option, char *title, int dlgNr)
if(currentCps) { // Settings popup for engine: format through heuristic
int n = currentCps->nrOptions;
+ if(!n) { DisplayNote(_("Engine has no options")); return 0; }
if(n > 50) width = 4; else if(n>24) width = 2; else width = 1;
height = n / width + 1;
if(n && (currentOption[n-1].type == Button || currentOption[n-1].type == SaveButton)) currentOption[n].min = 1; // OK on same line