Bug 797114 - Fixing an SX due to deleted account stuck in an error loop

This commit is contained in:
jean 2020-04-12 12:20:47 -07:00
parent 7d39ccc9d7
commit 5642f0236d

View File

@ -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);