r15121 - gnucash/branches/sx-cleanup/src/engine - Add `on_done` handler that emits QOF_MODIFY_EVENT.
Joshua Sled
jsled at cvs.gnucash.org
Tue Nov 14 20:44:20 EST 2006
Author: jsled
Date: 2006-11-14 20:44:18 -0500 (Tue, 14 Nov 2006)
New Revision: 15121
Trac: http://svn.gnucash.org/trac/changeset/15121
Modified:
gnucash/branches/sx-cleanup/src/engine/SchedXaction.c
Log:
Add `on_done` handler that emits QOF_MODIFY_EVENT.
Modified: gnucash/branches/sx-cleanup/src/engine/SchedXaction.c
===================================================================
--- gnucash/branches/sx-cleanup/src/engine/SchedXaction.c 2006-11-15 00:09:24 UTC (rev 15120)
+++ gnucash/branches/sx-cleanup/src/engine/SchedXaction.c 2006-11-15 01:44:18 UTC (rev 15121)
@@ -192,13 +192,18 @@
PERR ("Failed to commit: %d", errcode);
}
+static inline void commit_done(QofInstance *inst)
+{
+ qof_event_gen (&inst->entity, QOF_EVENT_MODIFY, NULL);
+}
+
static inline void noop (QofInstance *inst) {}
void
gnc_sx_commit_edit (SchedXaction *sx)
{
if (!qof_commit_edit (QOF_INSTANCE(sx))) return;
- qof_commit_edit_part2 (&sx->inst, commit_err, noop, noop);
+ qof_commit_edit_part2 (&sx->inst, commit_err, commit_done, noop);
}
/* ============================================================ */
More information about the gnucash-changes
mailing list