Merge Chris Good's branch 'bug797688RecAddSubAcct', PR #709 into master

This commit is contained in:
Robert Fewell 2020-05-03 12:39:58 +01:00
commit e5e7b30f7a

View File

@ -1608,6 +1608,12 @@ recn_set_watches_one_account (gpointer data, gpointer user_data)
RecnWindow *recnData = (RecnWindow *)user_data;
GList *node;
/* add a watch on the account */
gnc_gui_component_watch_entity (recnData->component_id,
xaccAccountGetGUID (account),
QOF_EVENT_MODIFY | QOF_EVENT_DESTROY);
/* add a watch on each unreconciled or cleared split for the account */
for (node = xaccAccountGetSplitList (account); node; node = node->next)
{
Split *split = node->data;
@ -1644,10 +1650,6 @@ recn_set_watches (RecnWindow *recnData)
gnc_gui_component_clear_watches (recnData->component_id);
gnc_gui_component_watch_entity (recnData->component_id,
&recnData->account,
QOF_EVENT_MODIFY | QOF_EVENT_DESTROY);
account = recn_get_account (recnData);
include_children = xaccAccountGetReconcileChildrenStatus(account);