In Windows a disabled radiobutton refuses to deselect when you select
another (enabled) button from the group. There are then 2 buttons
checked, and the code to readout the buttons took the first one. Now it
is changed to take the first enabled one.
int i=0, j;\r
while((j = radioButton[i++]) != -2) {\r
if(j == -1) continue; // no menu button\r
- if(IsDlgButtonChecked(hDlg, j)) return (VariantClass) i-1;\r
+ if(IsDlgButtonChecked(hDlg, j) &&\r
+ (appData.noChessProgram || strstr(first.variants, VariantName(i-1)))) return (VariantClass) i-1;\r
}\r
return gameInfo.variant; // If no button checked, keep old\r
}\r