Export Report needs to heed RESPONSE_CANCEL for close-all-dialogs

This still does not work on macOS. closing a session (using
the menu) while the dialog is visible still causes a crash:
`unload_session()` completes and destroys the session
before the dialog's run() method returns and destroys the dialog.
This commit is contained in:
Robin Gareus
2024-08-19 03:42:19 +02:00
parent fdf5b0f8a1
commit 9311a767cc

View File

@@ -856,7 +856,7 @@ ExportReport::run ()
{
do {
int i = ArdourDialog::run ();
if (i == Gtk::RESPONSE_DELETE_EVENT || i == RESPONSE_CLOSE) {
if (i == Gtk::RESPONSE_DELETE_EVENT || i == RESPONSE_CLOSE || i == RESPONSE_CANCEL) {
break;
}
} while (1);