git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9508 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2003-10-15 03:25:03 +00:00
parent ae46d71132
commit 5be6a91fc6

View File

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