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.
This commit is contained in:
Dr. Peter Zimmerer 2020-02-22 18:21:26 +01:00
parent 6add6b1f1d
commit 768b25dfd6

View File

@ -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);