From 768b25dfd61ae25f697ddacf445cb30a7ca17222 Mon Sep 17 00:00:00 2001 From: "Dr. Peter Zimmerer" Date: Sat, 22 Feb 2020 18:21:26 +0100 Subject: [PATCH] Using equality check from commit 2f38095 for removal of unassigned GC accounts Using the equality check introduced with the previous commit 2f38095 also for checking if a newly assigned GnuCash account has been previously assigned to a different AqBanking account and deleting the previous assignment to keep the matches unique. --- gnucash/import-export/aqb/assistant-ab-initial.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnucash/import-export/aqb/assistant-ab-initial.c b/gnucash/import-export/aqb/assistant-ab-initial.c index 5aaea509fa..6ecb72f294 100644 --- a/gnucash/import-export/aqb/assistant-ab-initial.c +++ b/gnucash/import-export/aqb/assistant-ab-initial.c @@ -545,7 +545,11 @@ clear_line_cb(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gtk_tree_model_get(model, iter, ACCOUNT_LIST_COL_AB_ACCT, &ab_acc, -1); +#ifdef AQBANKING6 + if (aai_ab_account_equal(ab_acc, data->ab_acc)) +#else if (ab_acc == data->ab_acc) +#endif { gtk_list_store_set(store, iter, ACCOUNT_LIST_COL_GNC_NAME, "", ACCOUNT_LIST_COL_CHECKED, TRUE, -1);