From 1925696a6c5d346521d7fd42a09ea84ee008c14f Mon Sep 17 00:00:00 2001 From: Theodore Turocy Date: Thu, 4 Dec 2025 09:33:51 +0000 Subject: [PATCH] Disable View->Strategic game if game is in strategic form On a strategic game the View->Strategic game menu option was (a) available and (b) unchecked. Selecting it would result in program termination. This corrects the situation: It is now (a) disabled but (b) checked. --- src/gui/gameframe.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/gameframe.cc b/src/gui/gameframe.cc index c528405ec..b247052bb 100644 --- a/src/gui/gameframe.cc +++ b/src/gui/gameframe.cc @@ -489,6 +489,10 @@ void gbtGameFrame::MakeMenus() viewMenu->Append(GBT_MENU_VIEW_STRATEGIC, _("&Strategic game"), wxT("Display the reduced strategic representation ") wxT("of the game"), true); + if (!m_doc->GetGame()->IsTree()) { + viewMenu->Check(GBT_MENU_VIEW_STRATEGIC, true); + viewMenu->Enable(GBT_MENU_VIEW_STRATEGIC, false); + } auto *formatMenu = new wxMenu; AppendBitmapItem(formatMenu, GBT_MENU_FORMAT_LAYOUT, _("&Layout"),