r17667 - gnucash/trunk/src - Add a callback to gnc-engine which will be called when a qof commit

Phil Longstaff plongstaff at cvs.gnucash.org
Mon Oct 27 19:42:02 EDT 2008


Author: plongstaff
Date: 2008-10-27 19:42:01 -0400 (Mon, 27 Oct 2008)
New Revision: 17667
Trac: http://svn.gnucash.org/trac/changeset/17667

Modified:
   gnucash/trunk/src/engine/Account.c
   gnucash/trunk/src/engine/SchedXaction.c
   gnucash/trunk/src/engine/Split.c
   gnucash/trunk/src/engine/Transaction.c
   gnucash/trunk/src/engine/gnc-budget.c
   gnucash/trunk/src/engine/gnc-commodity.c
   gnucash/trunk/src/engine/gnc-engine.c
   gnucash/trunk/src/engine/gnc-engine.h
   gnucash/trunk/src/engine/gnc-lot.c
   gnucash/trunk/src/engine/gnc-pricedb.c
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
Add a callback to gnc-engine which will be called when a qof commit 
fails.  Most engine objects catch the qof commit but then just log the 
problem to the trace log.  Now, the engine objects will invoke this 
callback.  gnc-main-window registers a callback and opens a dialog box 
to inform the user.  This is necessary because with an sql backend, 
commits happen whenever an object is created or modified, not just 
synchronously when the user selects to save the file.




More information about the gnucash-patches mailing list