AUDIT: r17467 - gnucash/trunk/src/engine - 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.
Charles Day
cedayiv at cvs.gnucash.org
Tue Aug 12 16:12:37 EDT 2008
Author: cedayiv
Date: 2008-08-12 16:12:37 -0400 (Tue, 12 Aug 2008)
New Revision: 17467
Trac: http://svn.gnucash.org/trac/changeset/17467
Modified:
gnucash/trunk/src/engine/gnc-pricedb.c
Log:
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.
BP
Modified: gnucash/trunk/src/engine/gnc-pricedb.c
===================================================================
--- gnucash/trunk/src/engine/gnc-pricedb.c 2008-08-12 19:23:50 UTC (rev 17466)
+++ gnucash/trunk/src/engine/gnc-pricedb.c 2008-08-12 20:12:37 UTC (rev 17467)
@@ -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