[Gnucash-changes] r12884 - gnucash/trunk - Delete the invoice page completely when closing it. Prevents a crash

David Hampton hampton at cvs.gnucash.org
Thu Jan 19 01:02:23 EST 2006


Author: hampton
Date: 2006-01-19 01:02:23 -0500 (Thu, 19 Jan 2006)
New Revision: 12884
Trac: http://svn.gnucash.org/trac/changeset/12884

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/business/business-gnome/dialog-invoice.c
Log:
Delete the invoice page completely when closing it.  Prevents a crash
when trying to open a different data file is there is an invoice page
in the window.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-01-19 06:01:12 UTC (rev 12883)
+++ gnucash/trunk/ChangeLog	2006-01-19 06:02:23 UTC (rev 12884)
@@ -1,5 +1,10 @@
 2006-01-19  David Hampton  <hampton at employees.org>
 
+	* src/business/business-gnome/dialog-invoice.c: Delete the invoice
+	page completely when closing it.  Prevents a crash when trying to
+	open a different data file is there is an invoice page in the
+	window.
+
 	* src/gnome-search/gnc-general-search.c: Finish the job. Make sure
 	this component isn't unregistered multiple times.
 

Modified: gnucash/trunk/src/business/business-gnome/dialog-invoice.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2006-01-19 06:01:12 UTC (rev 12883)
+++ gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2006-01-19 06:02:23 UTC (rev 12884)
@@ -419,6 +419,7 @@
 
   gnc_entry_ledger_destroy (iw->ledger);
   gnc_unregister_gui_component (iw->component_id);
+  gtk_widget_destroy(widget);
   gnc_resume_gui_refresh ();
 
   g_free (iw);
@@ -1908,9 +1909,6 @@
 				       GNC_INVOICE_MODULE_NAME,
 				       GNC_EVENT_MODIFY | GNC_EVENT_DESTROY);
 
-  g_signal_connect (G_OBJECT (dialog), "destroy",
-		    G_CALLBACK (gnc_invoice_window_destroy_cb), iw);
-
   /* Create the register */
   {
     GtkWidget *regWidget, *frame, *window;



More information about the gnucash-changes mailing list