gnucash master: Multiple changes pushed

Robert Fewell bobit at code.gnucash.org
Sun May 3 07:49:12 EDT 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/e5e7b30f (commit)
	 via  https://github.com/Gnucash/gnucash/commit/0b97f1e4 (commit)
	from  https://github.com/Gnucash/gnucash/commit/7483d501 (commit)



commit e5e7b30f7aaa5ab1374b8f60e957806a2a872024
Merge: 7483d5014 0b97f1e44
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Sun May 3 12:39:58 2020 +0100

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


commit 0b97f1e443949bea7521100ba2950301e488f4a5
Author: goodvibes2 <goodchris96 at gmail.com>
Date:   Mon Apr 27 18:42:02 2020 +1000

    Bug 797388 - Add watch for ea subacct of the acct to be reconciled
    
    Enable the Reconcile window debit & credit unreconciled split
    lists to be automatically updated when transactions for
    subaccounts of the account to be reconciled are added, modified or
    deleted. This already occurs for the reconciliation account.

diff --git a/gnucash/gnome/window-reconcile.c b/gnucash/gnome/window-reconcile.c
index 431c3f64c..4b666509e 100644
--- a/gnucash/gnome/window-reconcile.c
+++ b/gnucash/gnome/window-reconcile.c
@@ -1543,6 +1543,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;
@@ -1579,10 +1585,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);



Summary of changes:
 gnucash/gnome/window-reconcile.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)



More information about the gnucash-changes mailing list