mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 797114 - Fixing an SX due to deleted account stuck in an error loop
This commit is contained in:
parent
7d39ccc9d7
commit
5642f0236d
@ -644,7 +644,8 @@ gnc_sxed_split_check_account (GncSxEditorDialog *sxed, Split *s,
|
|||||||
NULL);
|
NULL);
|
||||||
acct = xaccAccountLookup (acct_guid, gnc_get_current_book ());
|
acct = xaccAccountLookup (acct_guid, gnc_get_current_book ());
|
||||||
guid_free (acct_guid);
|
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;
|
return FALSE;
|
||||||
split_cmdty = xaccAccountGetCommodity(acct);
|
split_cmdty = xaccAccountGetCommodity(acct);
|
||||||
split_amount = xaccSplitGetAmount(s);
|
split_amount = xaccSplitGetAmount(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user