mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Remove automatch_store_transactions() from import-main-matcher.
There hasn't been a clist to iterate through since 2002, calling gnc_import_TransInfo_refresh_destacc immediately after gnc_import_TransInfo_set_destacc(...TRUE) is a no-op, and refresh_model_row gets called immediately after run_account_picker_dialog_returns. As a side benefit this might fix bug 757078.
This commit is contained in:
parent
72f630e8e3
commit
53b4526262
@ -96,11 +96,6 @@ void on_matcher_help_close_clicked (GtkButton *button, gpointer user_data);
|
||||
|
||||
/* Local prototypes */
|
||||
static void
|
||||
automatch_store_transactions(GNCImportMainMatcher *info,
|
||||
GtkTreeModel *model,
|
||||
GtkTreeIter *iter,
|
||||
GNCImportTransInfo *trans_info);
|
||||
static void
|
||||
refresh_model_row(GNCImportMainMatcher *gui, GtkTreeModel *model,
|
||||
GtkTreeIter *iter, GNCImportTransInfo *info);
|
||||
|
||||
@ -258,14 +253,7 @@ run_account_picker_dialog (GNCImportMainMatcher *info,
|
||||
old_acc,
|
||||
&ok_pressed);
|
||||
if (ok_pressed)
|
||||
{
|
||||
gnc_import_TransInfo_set_destacc (trans_info,
|
||||
new_acc,
|
||||
TRUE);
|
||||
|
||||
/* Iterate through the transactions in a given clist to auto match them */
|
||||
automatch_store_transactions(info, model, iter, trans_info);
|
||||
}
|
||||
gnc_import_TransInfo_set_destacc (trans_info, new_acc, TRUE);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -914,20 +902,6 @@ void gnc_gen_trans_list_add_trans_with_ref_id(GNCImportMainMatcher *gui, Transac
|
||||
return;
|
||||
}/* end gnc_import_add_trans_with_ref_id() */
|
||||
|
||||
/* Iterate through the rows of the clist and try to automatch each of them */
|
||||
static void
|
||||
automatch_store_transactions (GNCImportMainMatcher *info,
|
||||
GtkTreeModel *model,
|
||||
GtkTreeIter *iter,
|
||||
GNCImportTransInfo *trans_info)
|
||||
{
|
||||
/* returns TRUE if we changed this row, so update it */
|
||||
if (gnc_import_TransInfo_refresh_destacc(trans_info, NULL))
|
||||
{
|
||||
refresh_model_row(info, model, iter, trans_info);
|
||||
}
|
||||
}
|
||||
|
||||
GtkWidget *gnc_gen_trans_list_widget (GNCImportMainMatcher *info)
|
||||
{
|
||||
g_assert(info);
|
||||
|
Loading…
Reference in New Issue
Block a user