mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Merge Chris Good's branch 'bug797688RecAddSubAcct', PR #709 into master
This commit is contained in:
commit
e5e7b30f7a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user