mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48: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;
|
||||
|
||||
trans->editlevel++;
|
||||
|
||||
mark_split (s);
|
||||
xaccAccountRemoveSplit (xaccSplitGetAccount(s), s);
|
||||
xaccAccountRecomputeBalance (xaccSplitGetAccount(s));
|
||||
xaccRemoveEntity(s->entity_table, &s->guid);
|
||||
xaccFreeSplit (s);
|
||||
|
||||
trans->editlevel--;
|
||||
}
|
||||
|
||||
g_list_free (trans->splits);
|
||||
|
Loading…
Reference in New Issue
Block a user