Grayout Machine Match menu when aborting match
[xboard.git] / menus.c
diff --git a/menus.c b/menus.c
index afcbab9..4dbf016 100644 (file)
--- a/menus.c
+++ b/menus.c
@@ -257,6 +257,8 @@ QuitProc ()
 void
 MatchProc ()
 {
+    static Enables matchOff[] = { { "Mode.MachineMatch", False }, { NULL, False } };
+    if(matchMode) SetMenuEnables(matchOff);
     MatchEvent(2);
 }