X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xaw%2Fxoptions.c;h=e855beb04c529ccae9c5f093076b70eae87dfa91;hb=e677df018f76f76bace476a381866294282e9f3f;hp=e183cf2f37f8826fde5b8b39bb84a6cac1935367;hpb=851f1a95960b259694be062409459d1bed39c787;p=xboard.git diff --git a/xaw/xoptions.c b/xaw/xoptions.c index e183cf2..e855beb 100644 --- a/xaw/xoptions.c +++ b/xaw/xoptions.c @@ -1129,7 +1129,7 @@ GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent j = SetPositionAndSize(args, last, lastrow, 3 /* border */, option[i].max /* w */, shrink ? textHeight : 0 /* h */, option[i].min & 0xE | chain /* chain */); XtSetArg(args[j], XtNlabel, _(option[i].name)); j++; - if(option[i].textValue) { // special for buttons of New Variant dialog + if(option[i].textValue && *option[i].textValue == '#') { // special for buttons of New Variant dialog XtSetArg(args[j], XtNsensitive, option[i].value >= 0 && (appData.noChessProgram || strstr(first.variants, VariantName(option[i].value)))); j++; XtSetArg(args[j], XtNborderWidth, (gameInfo.variant == option[i].value)+1); j++;