r23380 - gnucash/trunk/src/import-export/ofx - Bug 711294 - Gnucash repeatedly ask associated income account when import qfx file
Geert Janssens
gjanssens at code.gnucash.org
Mon Nov 4 16:23:51 EST 2013
Author: gjanssens
Date: 2013-11-04 16:23:48 -0500 (Mon, 04 Nov 2013)
New Revision: 23380
Trac: http://svn.gnucash.org/trac/changeset/23380
Modified:
gnucash/trunk/src/import-export/ofx/gnc-ofx-kvp.c
Log:
Bug 711294 - Gnucash repeatedly ask associated income account when import qfx file
Patch by Kuang-che Wu <kcwu at csie.org>
Modified: gnucash/trunk/src/import-export/ofx/gnc-ofx-kvp.c
===================================================================
--- gnucash/trunk/src/import-export/ofx/gnc-ofx-kvp.c 2013-11-04 21:23:24 UTC (rev 23379)
+++ gnucash/trunk/src/import-export/ofx/gnc-ofx-kvp.c 2013-11-04 21:23:48 UTC (rev 23380)
@@ -27,7 +27,6 @@
#include "gnc-ofx-kvp.h"
static const char *KEY_ASSOC_INCOME_ACCOUNT = "ofx/associated-income-account";
-static void force_account_dirty(Account *acct);
Account *gnc_ofx_kvp_get_assoc_account(const Account* investment_account)
@@ -65,20 +64,6 @@
xaccAccountBeginEdit(investment_account);
kvp_frame_set_slot_nc(acc_frame, KEY_ASSOC_INCOME_ACCOUNT,
kvp_val);
- force_account_dirty(investment_account);
+ qof_instance_set_dirty(QOF_INSTANCE (investment_account));
xaccAccountCommitEdit(investment_account);
}
-
-// copied from gnc-ab-kvp.c
-static void
-force_account_dirty(Account *acct)
-{
- gchar *name = g_strdup(xaccAccountGetName(acct));
-
- /* This is necessary because modifying the KvpFrames doesn't mark
- * accounts dirty, which means the changes wont be propagated to the
- * backend.
- */
- xaccAccountSetName(acct, name);
- g_free(name);
-}
More information about the gnucash-changes
mailing list