From: H.G. Muller Date: Wed, 4 May 2011 13:42:26 +0000 (+0200) Subject: Display note in stead of empty engine-settings dialog XB X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=280e86e18fe7672e3aec7cd6175534ee15e7ed7f;p=xboard.git Display note in stead of empty engine-settings dialog XB --- diff --git a/xoptions.c b/xoptions.c index 8841dca..a2aee19 100644 --- 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