Fix menu grayout after illegal move
authorH.G. Muller <h.g.muller@hccnet.nl>
Tue, 27 Dec 2011 16:56:07 +0000 (17:56 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Tue, 27 Dec 2011 16:56:07 +0000 (17:56 +0100)
TheThinkingEnables were not reset to user state after the engine rejected
the entered move as illegal.

backend.c

index 84692de..d765e81 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -8359,6 +8359,8 @@ if(appData.debugMode) fprintf(debugFP, "nodes = %d, %lld\n", (int) programStats.
                parseList[currentMove], _(cps->which));
        DisplayMoveError(buf1);
        DrawPosition(FALSE, boards[currentMove]);
+
+       SetUserThinkingEnables();
        return;
     }
     if (strncmp(message, "time", 4) == 0 && StrStr(message, "Illegal")) {