From 0ef4c64c6b3bd16d53a768cf891a7108766f6a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6hler?= Date: Mon, 29 Jan 2007 00:52:02 +0000 Subject: [PATCH] Do not crash on delete_event in new user dialog. Fix #401484. If the new user dialog is closed with the help of the window manager, the delete_event is not handled and g_assert_not_reached() is reached by the code. Treat it like a click on "Cancel" instead. BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15459 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/dialog-new-user.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gnome/dialog-new-user.c b/src/gnome/dialog-new-user.c index ec5376ac62..0a5baa6318 100644 --- a/src/gnome/dialog-new-user.c +++ b/src/gnome/dialog-new-user.c @@ -99,6 +99,7 @@ gnc_ui_new_user_dialog (void) result = gtk_dialog_run (GTK_DIALOG (dialog)); switch (result) { case GTK_RESPONSE_CANCEL: + case GTK_RESPONSE_DELETE_EVENT: gnc_ui_new_user_cancel_dialog (); break; case GTK_RESPONSE_OK: