Skip to content

Commit

Permalink
[gnc-ofx-import.cpp] show message while deduplicating download
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed May 20, 2024
1 parent d0851d1 commit 11059ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gnucash/import-export/ofx/gnc-ofx-import.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include "gnc-glib-utils.h"
#include "gnc-prefs.h"
#include "gnc-ui.h"
#include "gnc-window.h"
#include "dialog-account.h"
#include "dialog-utils.h"
#include "window-reconcile.h"
Expand Down Expand Up @@ -1303,6 +1304,9 @@ runMatcher (ofx_info* info, char * selected_filename, gboolean go_to_next_file)
* create duplicate entries.
*/
info->num_trans_processed = 0;

gnc_window_show_progress (_("Removing duplicates transactions..."), 100);

// Add transactions, but verify that there isn't one that was
// already added with identical amounts and date, and a different
// account. To do that, create a hash table whose key is a hash of
Expand Down Expand Up @@ -1347,6 +1351,8 @@ runMatcher (ofx_info* info, char * selected_filename, gboolean go_to_next_file)
DEBUG("%d transactions remaining to process in file %s\n", g_list_length (info->trans_list),
selected_filename);

gnc_window_show_progress (nullptr, -1);

// See whether the view has anything in it and warn the user if not.
if (gnc_gen_trans_list_empty (info->gnc_ofx_importer_gui))
{
Expand Down

0 comments on commit 11059ed

Please sign in to comment.