[Gnucash-changes] r13132 - gnucash/trunk/src/engine - Keep QOF
aware of the dirty-state of Transactions.
Chris Shoemaker
c.shoemaker at cox.net
Mon Feb 6 13:07:00 EST 2006
On Mon, Feb 06, 2006 at 01:03:43PM -0500, Derek Atkins wrote:
> mark_trans() should call qof_instance_set_dirty(). no need to call it
> everywhere -- we already call mark_trans() everywhere. Do this all in
> one place, please.
Actually, we call mark_trans() in only two places. It seems like
mark_trans() is for dirtying the splits in the trans, not the trans
itself.
-chris
>
> -derek
>
> Quoting Chris Shoemaker <chris at cvs.gnucash.org>:
>
> >Modified:
> > gnucash/trunk/src/engine/Transaction.c
> >Log:
> > Keep QOF aware of the dirty-state of Transactions.
> > Also, dirty transactions upon changing due date and read-only status,
> > which didn't used to happen.
> [snip]
> >+ qof_instance_set_dirty(QOF_INSTANCE(trans));
> > mark_trans (trans);
> > qof_commit_edit(QOF_INSTANCE(trans));
> [snip]
>
> --
> Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
> Member, MIT Student Information Processing Board (SIPB)
> URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
> warlord at MIT.EDU PGP key available
>
More information about the gnucash-devel
mailing list