mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Enclose book kvp manipulation in begin/commit_edit in aqbanking plugin.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19600 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
59820c823e
commit
334744d70f
@ -134,8 +134,10 @@ gnc_ab_set_book_template_list(QofBook *b, GList *template_list)
|
|||||||
{
|
{
|
||||||
kvp_frame *frame = gnc_ab_get_book_kvp(b, TRUE);
|
kvp_frame *frame = gnc_ab_get_book_kvp(b, TRUE);
|
||||||
kvp_value *value = kvp_value_new_glist_nc(template_list);
|
kvp_value *value = kvp_value_new_glist_nc(template_list);
|
||||||
|
qof_book_begin_edit(b);
|
||||||
kvp_frame_set_slot_nc(frame, AB_TEMPLATES, value);
|
kvp_frame_set_slot_nc(frame, AB_TEMPLATES, value);
|
||||||
qof_book_kvp_changed(b);
|
qof_book_mark_dirty(b);
|
||||||
|
qof_book_commit_edit(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user