gnucash stable: Bug 724745 - Added new transaction during reconcile, didn't...

John Ralls jralls at code.gnucash.org
Fri Jul 26 19:13:41 EDT 2024


Updated	 via  https://github.com/Gnucash/gnucash/commit/3312b5fe (commit)
	from  https://github.com/Gnucash/gnucash/commit/074f3057 (commit)



commit 3312b5feebb462f228497b35e1c4822fc0bbc036
Author: John Ralls <jralls at ceridwen.us>
Date:   Fri Jul 26 13:17:13 2024 -0700

    Bug 724745 - Added new transaction during reconcile, didn't...
    
     show up in reconcile window.
    
    Watch all of the splits in the accounts to get signals.

diff --git a/gnucash/gnome/window-reconcile.cpp b/gnucash/gnome/window-reconcile.cpp
index 83247af59d..ffed300629 100644
--- a/gnucash/gnome/window-reconcile.cpp
+++ b/gnucash/gnome/window-reconcile.cpp
@@ -1621,29 +1621,15 @@ recn_set_watches_one_account (gpointer data, gpointer user_data)
                                     xaccAccountGetGUID (account),
                                     QOF_EVENT_MODIFY | QOF_EVENT_DESTROY);
 
-    /* add a watch on each unreconciled or cleared split for the account */
+    /* add a watch on each split for the account */
     for (auto split : xaccAccountGetSplits (account))
     {
-        Transaction *trans;
-        char recn;
-
-        recn = xaccSplitGetReconcile (split);
-        switch (recn)
-        {
-        case NREC:
-        case CREC:
-            trans = xaccSplitGetParent (split);
-
-            gnc_gui_component_watch_entity (recnData->component_id,
-                                            xaccTransGetGUID (trans),
-                                            QOF_EVENT_MODIFY
-                                            | QOF_EVENT_DESTROY
-                                            | GNC_EVENT_ITEM_CHANGED);
-            break;
-
-        default:
-            break;
-        }
+        auto trans = xaccSplitGetParent (split);
+        gnc_gui_component_watch_entity (recnData->component_id,
+                                        xaccTransGetGUID (trans),
+                                        QOF_EVENT_MODIFY
+                                        | QOF_EVENT_DESTROY
+                                        | GNC_EVENT_ITEM_CHANGED);
     }
 }
 



Summary of changes:
 gnucash/gnome/window-reconcile.cpp | 28 +++++++---------------------
 1 file changed, 7 insertions(+), 21 deletions(-)



More information about the gnucash-changes mailing list