From 5f01aebfaa79db3ad15c6d177a9ff87d7cedf29b Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Wed, 9 Aug 2023 21:19:56 +0800 Subject: [PATCH] [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. --- gnucash/import-export/import-main-matcher.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnucash/import-export/import-main-matcher.cpp b/gnucash/import-export/import-main-matcher.cpp index dd109c89bcd..9c8195aea2a 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