mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
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:
parent
6add6b1f1d
commit
768b25dfd6
@ -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);
|
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)
|
if (ab_acc == data->ab_acc)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
gtk_list_store_set(store, iter, ACCOUNT_LIST_COL_GNC_NAME, "",
|
gtk_list_store_set(store, iter, ACCOUNT_LIST_COL_GNC_NAME, "",
|
||||||
ACCOUNT_LIST_COL_CHECKED, TRUE, -1);
|
ACCOUNT_LIST_COL_CHECKED, TRUE, -1);
|
||||||
|
Loading…
Reference in New Issue
Block a user