mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
When rolling back transactions, adjust editlevel to prevent further begin edits.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5678 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
42abf3bad1
commit
66ba034150
@ -1731,11 +1731,15 @@ xaccTransRollbackEdit (Transaction *trans)
|
|||||||
{
|
{
|
||||||
Split *s = node->data;
|
Split *s = node->data;
|
||||||
|
|
||||||
|
trans->editlevel++;
|
||||||
|
|
||||||
mark_split (s);
|
mark_split (s);
|
||||||
xaccAccountRemoveSplit (xaccSplitGetAccount(s), s);
|
xaccAccountRemoveSplit (xaccSplitGetAccount(s), s);
|
||||||
xaccAccountRecomputeBalance (xaccSplitGetAccount(s));
|
xaccAccountRecomputeBalance (xaccSplitGetAccount(s));
|
||||||
xaccRemoveEntity(s->entity_table, &s->guid);
|
xaccRemoveEntity(s->entity_table, &s->guid);
|
||||||
xaccFreeSplit (s);
|
xaccFreeSplit (s);
|
||||||
|
|
||||||
|
trans->editlevel--;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_list_free (trans->splits);
|
g_list_free (trans->splits);
|
||||||
|
Loading…
Reference in New Issue
Block a user