From ed1caa6bb55b5a8a1d0178f337450fbb4662248b Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 5 Nov 2023 21:48:18 +0200 Subject: [PATCH 37/37] gtk4x: Don't call setup_dialog() for quit dialog It's an alert dialog, and setup_dialog() doesn't work for those. See osdn #48947 Signed-off-by: Marko Lindqvist --- client/gui-gtk-5.0/gui_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/client/gui-gtk-5.0/gui_main.c b/client/gui-gtk-5.0/gui_main.c index edea92f8b1..2ae2e5f091 100644 --- a/client/gui-gtk-5.0/gui_main.c +++ b/client/gui-gtk-5.0/gui_main.c @@ -2432,7 +2432,6 @@ void popup_quit_dialog(void) quit_dialog = gtk_alert_dialog_new(_("Are you sure you want to quit?")); gtk_alert_dialog_set_buttons(GTK_ALERT_DIALOG(quit_dialog), buttons); - setup_dialog(GTK_WIDGET(quit_dialog), toplevel); gtk_alert_dialog_choose(GTK_ALERT_DIALOG(quit_dialog), GTK_WINDOW(toplevel), NULL, -- 2.42.0