[Gnucash-changes] r13931 - gnucash/trunk - Add support for directly marking the book dirty, for recording the

David Hampton hampton-gnucash at rainbolthampton.net
Sun May 7 22:23:11 EDT 2006


On Sun, 2006-05-07 at 22:18 -0400, Chris Shoemaker wrote:
> On Sat, May 06, 2006 at 05:10:01PM -0400, David Hampton wrote:
> > Modified: gnucash/trunk/lib/libqof/qof/qofutil.c
> > ===================================================================
> > --- gnucash/trunk/lib/libqof/qof/qofutil.c	2006-05-06 14:53:22 UTC (rev 13930)
> > +++ gnucash/trunk/lib/libqof/qof/qofutil.c	2006-05-06 21:09:59 UTC (rev 13931)
> > @@ -302,8 +302,10 @@
> >          return TRUE;
> >      }
> >  
> > -    if (dirty && qof_get_alt_dirty_mode())
> > +    if (dirty && qof_get_alt_dirty_mode()) {
> >        qof_collection_mark_dirty(inst->entity.collection);
> > +      qof_book_mark_dirty(inst->book);
> > +    }
> >      if (on_done)
> >          on_done(inst);
> >      return TRUE;
> 
> Is this a semantic change or just an optimization? 

Neither.  The qof_book_mark_dirty() function also records the time when
the book is first marked dirty, and invokes any registered callback
function.  Gnucash uses the former when you quit without saving, and the
latter to immediately indicate that the book is dirty in the window
title bar.

David




More information about the gnucash-devel mailing list