gnucash stable: Amendment last commit - copy/paste errors

Christopher Lam clam at code.gnucash.org
Tue Jul 25 01:03:06 EDT 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/ba1e52d4 (commit)
	from  https://github.com/Gnucash/gnucash/commit/833ed5ae (commit)



commit ba1e52d481aeed48316039915fa1c8ad86b44fe1
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Tue Jul 25 13:00:09 2023 +0800

    Amendment last commit - copy/paste errors
    
    Didn't transfer correct xaccTrans calls.

diff --git a/gnucash/import-export/import-main-matcher.cpp b/gnucash/import-export/import-main-matcher.cpp
index e4d175eb7b..6824341b6e 100644
--- a/gnucash/import-export/import-main-matcher.cpp
+++ b/gnucash/import-export/import-main-matcher.cpp
@@ -2266,8 +2266,8 @@ gnc_gen_trans_list_purge_existing (GNCImportMainMatcher *gui)
     std::for_each (gui->transactions_to_delete.begin(), gui->transactions_to_delete.end(),
                    [](Transaction* txn)
                    {
-                       xaccTransBeginEdit (txn);
                        xaccTransDestroy (txn);
+                       xaccTransCommitEdit (txn);
                    });
     std::for_each (accset.begin(), accset.end(), xaccAccountCommitEdit);
     gui->transactions_to_delete.clear();
diff --git a/gnucash/import-export/import-main-matcher.h b/gnucash/import-export/import-main-matcher.h
index 1d9425533b..c84ca8f20d 100644
--- a/gnucash/import-export/import-main-matcher.h
+++ b/gnucash/import-export/import-main-matcher.h
@@ -206,9 +206,6 @@ void gnc_gen_trans_list_add_trans_with_ref_id (GNCImportMainMatcher *gui,
  * actually efficiently destroy the transactions already imported.
  *
  * @param gui The Transaction Importer to use.
- *
- *
- * @param ref_id Reference id which links an external object to the transaction.
  */
 
 void gnc_gen_trans_list_purge_existing (GNCImportMainMatcher *gui);



Summary of changes:
 gnucash/import-export/import-main-matcher.cpp | 2 +-
 gnucash/import-export/import-main-matcher.h   | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)



More information about the gnucash-changes mailing list