r17581 - gnucash/branches/2.2/src/engine - [r17467] Prices: Emit a qof event when a price is changed.

Andreas Köhler andi5 at cvs.gnucash.org
Sat Sep 20 22:50:47 EDT 2008


Author: andi5
Date: 2008-09-20 22:50:47 -0400 (Sat, 20 Sep 2008)
New Revision: 17581
Trac: http://svn.gnucash.org/trac/changeset/17581

Modified:
   gnucash/branches/2.2/src/engine/gnc-pricedb.c
Log:
[r17467] Prices: Emit a qof event when a price is changed.

This allows the Price Editor to immediately update its
display. Previously, price changes would only get shown when the mouse
happened to pass over the affected row. Theoretically other parts of
GnuCash, such as reports, could now be made to watch for price changes
and automatically refresh themselves.

Committed by cedayiv.

Modified: gnucash/branches/2.2/src/engine/gnc-pricedb.c
===================================================================
--- gnucash/branches/2.2/src/engine/gnc-pricedb.c	2008-09-21 02:50:26 UTC (rev 17580)
+++ gnucash/branches/2.2/src/engine/gnc-pricedb.c	2008-09-21 02:50:47 UTC (rev 17581)
@@ -193,6 +193,7 @@
 gnc_price_set_dirty (GNCPrice *p)
 {
   qof_instance_set_dirty(&p->inst);
+  qof_event_gen(&p->inst, QOF_EVENT_MODIFY, NULL);
 }
 
 void



More information about the gnucash-changes mailing list