From ed8c0d09bdd1662bdcf1f70fce6c74fffac9b77e Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 21 Jan 2023 04:01:19 +0200 Subject: [PATCH 32/32] gtk4: Add menu entry for targetless revolution only when allowed See osdn #45937 Signed-off-by: Marko Lindqvist --- client/gui-gtk-4.0/menu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/gui-gtk-4.0/menu.c b/client/gui-gtk-4.0/menu.c index 562a57b1bf..84a6e22c78 100644 --- a/client/gui-gtk-4.0/menu.c +++ b/client/gui-gtk-4.0/menu.c @@ -3082,7 +3082,10 @@ void real_menus_update(void) g_menu_insert_submenu(unit_menu, 1, _("Go to a_nd..."), G_MENU_MODEL(submenu)); submenu = g_menu_new(); - menu_entry_init(submenu, "START_REVOLUTION"); + + if (untargeted_revolution_allowed()) { + menu_entry_init(submenu, "START_REVOLUTION"); + } i = 0; governments_iterate(g) { -- 2.39.0