From 9a496a6dcad83285489b2eafdaed590871a1f4a4 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 5 Jul 2022 01:19:33 +0300 Subject: [PATCH 48/48] gtk: Let user to select transport for L)oad key Reported anonymously See osdn #43950 Signed-off-by: Marko Lindqvist --- client/gui-gtk-3.22/menu.c | 2 +- client/gui-gtk-4.0/menu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/gui-gtk-3.22/menu.c b/client/gui-gtk-3.22/menu.c index ccc6e36d92..05355d3418 100644 --- a/client/gui-gtk-3.22/menu.c +++ b/client/gui-gtk-3.22/menu.c @@ -1516,7 +1516,7 @@ static void unit_unsentry_callback(GtkMenuItem *item, gpointer data) static void unit_load_callback(GtkMenuItem *item, gpointer data) { unit_list_iterate(get_units_in_focus(), punit) { - request_unit_load(punit, NULL, unit_tile(punit)); + request_transport(punit, unit_tile(punit)); } unit_list_iterate_end; } diff --git a/client/gui-gtk-4.0/menu.c b/client/gui-gtk-4.0/menu.c index 44bf93a47e..99be5c8712 100644 --- a/client/gui-gtk-4.0/menu.c +++ b/client/gui-gtk-4.0/menu.c @@ -1634,7 +1634,7 @@ static void unit_unsentry_callback(GtkMenuItem *item, gpointer data) static void unit_load_callback(GtkMenuItem *item, gpointer data) { unit_list_iterate(get_units_in_focus(), punit) { - request_unit_load(punit, NULL, unit_tile(punit)); + request_transport(punit, unit_tile(punit)); } unit_list_iterate_end; } -- 2.35.1