From 280e86e18fe7672e3aec7cd6175534ee15e7ed7f Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 4 May 2011 15:42:26 +0200 Subject: [PATCH] Display note in stead of empty engine-settings dialog XB --- xoptions.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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 -- 1.7.0.4