Pay attention to dont-add-to-list checkbox again
authorH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 2 Nov 2017 11:14:13 +0000 (12:14 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 2 Nov 2017 11:14:13 +0000 (12:14 +0100)
Although it is questionable whether this checkbox will remain in the log
run, as long as it is there we better obey it.

backend.c

index 0e0a5b8..0328a58 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -952,6 +952,7 @@ SaveEngineList ()
 void
 AddToEngineList (int i)
 {
+    if(addToList) {
        int len;
        char quote, buf[MSG_SIZ];
        char *q = firstChessProgramNames, *p = newEngineCommand;
@@ -975,6 +976,7 @@ AddToEngineList (int i)
        SaveEngineList();
        FloatToFront(&appData.recentEngineList, buf);
        ASSIGN(currentEngine[i], buf);
+    }
 }
 
 void