mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9508 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
ae46d71132
commit
5be6a91fc6
@ -766,12 +766,7 @@ xaccAccountSetGUID (Account *account, const GUID *guid)
|
||||
/* XXX this looks fishy and weird to me ... */
|
||||
PINFO("acct=%p", account);
|
||||
xaccAccountBeginEdit (account);
|
||||
qof_entity_remove (account->inst.book->entity_table, &account->inst.entity.guid);
|
||||
|
||||
account->inst.entity.guid = *guid;
|
||||
|
||||
qof_entity_store (account->inst.book->entity_table, account,
|
||||
&account->inst.entity.guid, GNC_ID_ACCOUNT);
|
||||
qof_entity_set_guid (&account->inst.entity, guid);
|
||||
account->inst.dirty = TRUE;
|
||||
xaccAccountCommitEdit (account);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user