From 5642f0236d3013054e64385cfabd465e76842546 Mon Sep 17 00:00:00 2001 From: jean Date: Sun, 12 Apr 2020 12:20:47 -0700 Subject: [PATCH] Bug 797114 - Fixing an SX due to deleted account stuck in an error loop --- gnucash/gnome/dialog-sx-editor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnucash/gnome/dialog-sx-editor.c b/gnucash/gnome/dialog-sx-editor.c index 1b1d423c75..2f2c7c439c 100644 --- a/gnucash/gnome/dialog-sx-editor.c +++ b/gnucash/gnome/dialog-sx-editor.c @@ -644,7 +644,8 @@ gnc_sxed_split_check_account (GncSxEditorDialog *sxed, Split *s, NULL); acct = xaccAccountLookup (acct_guid, gnc_get_current_book ()); guid_free (acct_guid); - if (acct == NULL) + // If the split is being destroyed always return TRUE. + if (acct == NULL && !qof_instance_get_destroying(s)) return FALSE; split_cmdty = xaccAccountGetCommodity(acct); split_amount = xaccSplitGetAmount(s);