AUDIT: r15459 - gnucash/trunk/src/gnome - Do not crash on delete_event in new user dialog. Fix #401484.

Andreas Köhler andi5 at cvs.gnucash.org
Sun Jan 28 19:52:03 EST 2007


Author: andi5
Date: 2007-01-28 19:52:02 -0500 (Sun, 28 Jan 2007)
New Revision: 15459
Trac: http://svn.gnucash.org/trac/changeset/15459

Modified:
   gnucash/trunk/src/gnome/dialog-new-user.c
Log:
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


Modified: gnucash/trunk/src/gnome/dialog-new-user.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-new-user.c	2007-01-28 21:58:20 UTC (rev 15458)
+++ gnucash/trunk/src/gnome/dialog-new-user.c	2007-01-29 00:52:02 UTC (rev 15459)
@@ -99,6 +99,7 @@
   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:



More information about the gnucash-changes mailing list