for(k=0; k<optionList[j].max; k++) {\r
if(!strcmp(choices[k], newText)) new = k;\r
}\r
- if(!cps && new) {\r
+ if(!cps && new > 0) {\r
if(*(char**)optionList[j].target) free(*(char**)optionList[j].target);\r
*(char**)optionList[j].target = strdup(optionList[j].choice[new]);\r
break;\r
swiss = appData.tourneyType < 0;\r
SetOptionValues(hDlg, NULL, activeList);\r
FREE(appData.saveGameFile); appData.saveGameFile = saveSaveFile;\r
- }\r
+ } else DisplayError(_("First you must specify an existing tourney file to clone"), 0);\r
}\r
\r
void TimeControlOptionsPopup P((HWND hDlg));\r
{ 0, 0, 0, NULL, (void*) &autoinc, "", NULL, CheckBox, N_("Step through lines/positions in file") },\r
{ 0, 0, 1000000000, NULL, (void*) &appData.rewindIndex, "", NULL, Spin, N_("Rewind after (0 = never):") },\r
{ 0, 0, 0, NULL, (void*) &twice, "", NULL, CheckBox, N_("Use each line/position twice") },\r
+ { 0, 0, 0, NULL, (void*) &appData.defNoBook, "", NULL, CheckBox, N_("Make all use GUI book by default") },\r
{ 0, 0, 1000000000, NULL, (void*) &appData.matchPause, "", NULL, Spin, N_("Pause between Games (ms):") },\r
{ 0, 0, 0, NULL, (void*) &ReplaceParticipant, "", NULL, Button, N_("Replace Engine") },\r
{ 0, 0, 0, NULL, (void*) &UpgradeParticipant, "", NULL, Button, N_("Upgrade Engine") },\r
{ 0, 0, 0, NULL, (void*) &TimeControlOptionsPopup, "", NULL, Button, N_("Time Control...") },\r
{ 0, 0, 0, NULL, (void*) &UciOptionsPopup, "", NULL, Button, N_("Common Engine...") },\r
- { 0, 0, 0, NULL, (void*) &Inspect, "", NULL, Button, N_("Inspect TourneyFile") },\r
+ { 0, 0, 0, NULL, (void*) &Inspect, "", NULL, Button, N_("Clone Tourney") },\r
{ 0, 0, 0, NULL, (void*) &MatchOK, "", NULL, EndMark , "" }\r
};\r
\r