gnucash stable: [import-main-matcher.cpp] when main matcher finalizes, refresh gui

Christopher Lam clam at code.gnucash.org
Wed Aug 9 09:53:18 EDT 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/5f01aebf (commit)
	from  https://github.com/Gnucash/gnucash/commit/c52e64a1 (commit)



commit 5f01aebfaa79db3ad15c6d177a9ff87d7cedf29b
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed Aug 9 21:19:56 2023 +0800

    [import-main-matcher.cpp] when main matcher finalizes, refresh gui
    
    If an import would add new transactions into the current register, and
    the import dialog is cancelled, the GUI would show extra blank lines
    for the deleted imported transactions. Refreshing GUI will ensure the
    correct unchanged account register is shown.

diff --git a/gnucash/import-export/import-main-matcher.cpp b/gnucash/import-export/import-main-matcher.cpp
index dd109c89bc..9c8195aea2 100644
--- a/gnucash/import-export/import-main-matcher.cpp
+++ b/gnucash/import-export/import-main-matcher.cpp
@@ -244,6 +244,8 @@ gnc_gen_trans_list_delete (GNCImportMainMatcher *info)
     g_list_free_full (info->new_strings, (GDestroyNotify)g_free);
 
     g_free (info);
+
+    gnc_gui_refresh_all ();
 }
 
 bool



Summary of changes:
 gnucash/import-export/import-main-matcher.cpp | 2 ++
 1 file changed, 2 insertions(+)



More information about the gnucash-changes mailing list