From fca4b45dcc1c88d975daaf69ee0f9df2e77c05aa Mon Sep 17 00:00:00 2001 From: Charles Day Date: Tue, 12 Aug 2008 20:12:37 +0000 Subject: [PATCH] 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 git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17467 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/gnc-pricedb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/gnc-pricedb.c b/src/engine/gnc-pricedb.c index 22e1290265..21cfb1fe8f 100644 --- a/src/engine/gnc-pricedb.c +++ b/src/engine/gnc-pricedb.c @@ -193,6 +193,7 @@ static void gnc_price_set_dirty (GNCPrice *p) { qof_instance_set_dirty(&p->inst); + qof_event_gen(&p->inst, QOF_EVENT_MODIFY, NULL); } void