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:
Robert Fewell 2020-06-06 10:04:36 +01:00
parent e4e36e6843
commit 9f97ce6c21

View File

@ -612,9 +612,9 @@ gnc_invoice_window_destroy_cb (GtkWidget *widget, gpointer data)
iw->invoice_guid = *guid_null ();
}
gtk_widget_destroy(widget);
gnc_entry_ledger_destroy (iw->ledger);
gnc_unregister_gui_component (iw->component_id);
gtk_widget_destroy(widget);
gnc_resume_gui_refresh ();
g_free (iw);