From 81e0dd3aa381120c59ef73ed26547924a678de43 Mon Sep 17 00:00:00 2001 From: PhantomShift <83253309+PhantomShift@users.noreply.github.com> Date: Wed, 27 Nov 2024 19:43:54 -0500 Subject: [PATCH] Fix crash due to not handling dialog window close event (#225) --- src/backend/gtk3/message_dialog.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/gtk3/message_dialog.rs b/src/backend/gtk3/message_dialog.rs index 62ef923..234969c 100644 --- a/src/backend/gtk3/message_dialog.rs +++ b/src/backend/gtk3/message_dialog.rs @@ -209,6 +209,7 @@ impl AsyncMessageDialogImpl for MessageDialog { gtk_sys::GTK_RESPONSE_CANCEL => MessageDialogResult::Cancel, gtk_sys::GTK_RESPONSE_YES => MessageDialogResult::Yes, gtk_sys::GTK_RESPONSE_NO => MessageDialogResult::No, + gtk_sys::GTK_RESPONSE_DELETE_EVENT => MessageDialogResult::Cancel, _ => unreachable!(), }); Box::pin(future)