Fix installing with chosen protocol
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 30 Oct 2017 21:54:12 +0000 (22:54 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 30 Oct 2017 21:54:12 +0000 (22:54 +0100)
The tryNr variable should be set by the Load Engine dialog even when
there is no auto-detection, to make the engine be added to the list.

backend.c

index f8ad17c..fd955fe 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -1060,6 +1060,7 @@ Load (ChessProgramState *cps, int i)
     }
     if(jar) { snprintf(buf3, MSG_SIZ, "java -jar %s", p); p = buf3; }
     ASSIGN(appData.chessProgram[i], p);
+    tryNr = 3; // requests adding to list without auto-detect
     if(isUCI == 3) tryNr = 1, isUCI = 0; // auto-detect
     appData.isUCI[i] = isUCI;
     appData.protocolVersion[i] = v1 ? 1 : PROTOVER;