Skip to content

Commit

Permalink
Improve kvp handling in aqbanking plugin.
Browse files Browse the repository at this point in the history
This is a follow-up on 21740.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21753 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
gjanssens committed Dec 19, 2011
1 parent e511936 commit eea7693
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/import-export/aqbanking/gnc-ab-kvp.c
Expand Up @@ -60,7 +60,7 @@ gnc_ab_set_account_accountid(Account *a, const gchar *id)
kvp_value *value = kvp_value_new_string(id);
xaccAccountBeginEdit(a);
kvp_frame_set_slot_nc(frame, AB_ACCOUNT_ID, value);
qof_book_mark_dirty(gnc_get_current_book());
qof_instance_set_dirty(QOF_INSTANCE (a));
xaccAccountCommitEdit(a);
}

Expand All @@ -79,7 +79,7 @@ gnc_ab_set_account_bankcode(Account *a, const gchar *code)
kvp_value *value = kvp_value_new_string(code);
xaccAccountBeginEdit(a);
kvp_frame_set_slot_nc(frame, AB_BANK_CODE, value);
qof_book_mark_dirty(gnc_get_current_book());
qof_instance_set_dirty(QOF_INSTANCE (a));
xaccAccountCommitEdit(a);
}

Expand All @@ -98,7 +98,7 @@ gnc_ab_set_account_uid(Account *a, guint32 uid)
kvp_value *value = kvp_value_new_gint64(uid);
xaccAccountBeginEdit(a);
kvp_frame_set_slot_nc(frame, AB_ACCOUNT_UID, value);
qof_book_mark_dirty(gnc_get_current_book());
qof_instance_set_dirty(QOF_INSTANCE (a));
xaccAccountCommitEdit(a);
}

Expand All @@ -117,7 +117,7 @@ gnc_ab_set_account_trans_retrieval(Account *a, Timespec time)
kvp_value *value = kvp_value_new_timespec(time);
xaccAccountBeginEdit(a);
kvp_frame_set_slot_nc(frame, AB_TRANS_RETRIEVAL, value);
qof_book_mark_dirty(gnc_get_current_book());
qof_instance_set_dirty(QOF_INSTANCE (a));
xaccAccountCommitEdit(a);
}

Expand Down

0 comments on commit eea7693

Please sign in to comment.