mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix g_signal_handler_disconnect: assertion in trace file
There is a difference in the way the sheet is closed between registers and invoices. The gnc-date-cell-destroy is being called before the gnc-item_edit_destroying for invoices and so when the item_edit tries to do the signal disconnect on the popup_item it no longer exists. Moving the gtk_widget_destroy before ledger_destroy fixes this.
This commit is contained in:
parent
e4e36e6843
commit
9f97ce6c21
@ -612,9 +612,9 @@ gnc_invoice_window_destroy_cb (GtkWidget *widget, gpointer data)
|
|||||||
iw->invoice_guid = *guid_null ();
|
iw->invoice_guid = *guid_null ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gtk_widget_destroy(widget);
|
||||||
gnc_entry_ledger_destroy (iw->ledger);
|
gnc_entry_ledger_destroy (iw->ledger);
|
||||||
gnc_unregister_gui_component (iw->component_id);
|
gnc_unregister_gui_component (iw->component_id);
|
||||||
gtk_widget_destroy(widget);
|
|
||||||
gnc_resume_gui_refresh ();
|
gnc_resume_gui_refresh ();
|
||||||
|
|
||||||
g_free (iw);
|
g_free (iw);
|
||||||
|
Loading…
Reference in New Issue
Block a user