From d00b4743b3abe11dbd9a97eb7dea5202ee226347 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Sun, 10 Jun 2001 05:36:14 +0000 Subject: [PATCH] fix warning git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4580 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnc-component-manager.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/gnc-component-manager.c b/src/gnc-component-manager.c index 1d0779b520..9b5a5b2182 100644 --- a/src/gnc-component-manager.c +++ b/src/gnc-component-manager.c @@ -244,16 +244,26 @@ gnc_cm_event_handler (GUID *entity, changes.account_event_mask |= event_type; break; + case GNC_ID_SPLIT: + /* split events are never generated by the engine, but might be + * generated by a backend (viz. the postgres backend.) + * Handle them just like transactions */ + changes.trans_event_mask |= event_type; + break; + case GNC_ID_PRICE: - /* Price events not currently handled by CM */ + /* hack alert -- FIXME - Price events not currently handled by CM */ break; case GNC_ID_NONE: break; - default: - PERR ("unexpected id type: %d", id_type); + default: { + char guid_str[GUID_ENCODING_LENGTH+1]; + guid_to_string_buff (entity, guid_str); + PERR ("unexpected id type: %d for guid=%s", id_type, guid_str); break; + } } got_events = TRUE;