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

Chris Shoemaker c.shoemaker at cox.net
Sun May 7 22:18:28 EDT 2006


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?  IIUC, a book with
a dirty collection will always be seen as dirty, but this will avoid
the need to walk the collection list.

-chris

> 
> _______________________________________________
> gnucash-changes mailing list
> gnucash-changes at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-changes


More information about the gnucash-devel mailing list