AUDIT: r21740 - gnucash/trunk/src/import-export/aqbanking - Replace no-op function force_account_dirty with qof_book_mark_dirty
Geert Janssens
gjanssens at code.gnucash.org
Sun Dec 18 13:13:02 EST 2011
Author: gjanssens
Date: 2011-12-18 13:13:02 -0500 (Sun, 18 Dec 2011)
New Revision: 21740
Trac: http://svn.gnucash.org/trac/changeset/21740
Modified:
gnucash/trunk/src/import-export/aqbanking/gnc-ab-kvp.c
Log:
Replace no-op function force_account_dirty with qof_book_mark_dirty
See bug #665998 for more details.
BP
Modified: gnucash/trunk/src/import-export/aqbanking/gnc-ab-kvp.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/gnc-ab-kvp.c 2011-12-18 18:12:52 UTC (rev 21739)
+++ gnucash/trunk/src/import-export/aqbanking/gnc-ab-kvp.c 2011-12-18 18:13:02 UTC (rev 21740)
@@ -42,7 +42,6 @@
/* This static indicates the debugging module that this .o belongs to. */
static QofLogModule log_module = G_LOG_DOMAIN;
-static void force_account_dirty(Account *acct);
static kvp_frame *gnc_ab_get_account_kvp(const Account *a, gboolean create);
static kvp_frame *gnc_ab_get_book_kvp(QofBook *b, gboolean create);
@@ -61,7 +60,7 @@
kvp_value *value = kvp_value_new_string(id);
xaccAccountBeginEdit(a);
kvp_frame_set_slot_nc(frame, AB_ACCOUNT_ID, value);
- force_account_dirty(a);
+ qof_book_mark_dirty(gnc_get_current_book());
xaccAccountCommitEdit(a);
}
@@ -80,7 +79,7 @@
kvp_value *value = kvp_value_new_string(code);
xaccAccountBeginEdit(a);
kvp_frame_set_slot_nc(frame, AB_BANK_CODE, value);
- force_account_dirty(a);
+ qof_book_mark_dirty(gnc_get_current_book());
xaccAccountCommitEdit(a);
}
@@ -99,7 +98,7 @@
kvp_value *value = kvp_value_new_gint64(uid);
xaccAccountBeginEdit(a);
kvp_frame_set_slot_nc(frame, AB_ACCOUNT_UID, value);
- force_account_dirty(a);
+ qof_book_mark_dirty(gnc_get_current_book());
xaccAccountCommitEdit(a);
}
@@ -118,7 +117,7 @@
kvp_value *value = kvp_value_new_timespec(time);
xaccAccountBeginEdit(a);
kvp_frame_set_slot_nc(frame, AB_TRANS_RETRIEVAL, value);
- force_account_dirty(a);
+ qof_book_mark_dirty(gnc_get_current_book());
xaccAccountCommitEdit(a);
}
@@ -141,20 +140,6 @@
qof_book_commit_edit(b);
}
-static void
-force_account_dirty(Account *acct)
-{
- gchar *name = g_strdup(xaccAccountGetName(acct));
- QofBook *book = gnc_get_current_book ();
- /* This is necessary because modifying the KvpFrames doesn't mark
- * accounts dirty, which means the changes wont be propagated to the
- * backend.
- */
- qof_book_mark_dirty(book);
- xaccAccountSetName(acct, name);
- g_free(name);
-}
-
static kvp_frame *
gnc_ab_get_account_kvp(const Account *a, gboolean create)
{
More information about the gnucash-changes
mailing list