From efcef70d9aaceb2526318b93e50b1f105d0ff368 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 24 Aug 2023 19:59:51 +0200 Subject: [PATCH] Ensure that `fatal` does exit Previously it was possible to just press "Esc" which closes the dialog with Gtk::RESPONSE_DELETE_EVENT and Ardour continues to run (and may or may not crash later). --- libs/gtkmm2ext/gtk_ui.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/gtkmm2ext/gtk_ui.cc b/libs/gtkmm2ext/gtk_ui.cc index afac25e5a2..f6acfab981 100644 --- a/libs/gtkmm2ext/gtk_ui.cc +++ b/libs/gtkmm2ext/gtk_ui.cc @@ -732,7 +732,8 @@ UI::handle_fatal (const char *message) hpacker.pack_start (quit, true, false); win.get_vbox()->pack_start (hpacker, false, false); - quit.signal_clicked().connect(mem_fun(*this,&UI::quit)); + quit.signal_clicked().connect ([&win] { win.response (-4); }); + win.signal_response().connect([this] (int) { UI::quit (); }); win.show_all (); win.set_modal (true);