Skip to content

Commit

Permalink
[import-main-matcher.cpp] when main matcher finalizes, refresh gui
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
christopherlam committed Aug 9, 2023
1 parent c52e64a commit 5f01aeb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnucash/import-export/import-main-matcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 5f01aeb

@christopherlam
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very clearly inspired by c52e64a

Please sign in to comment.