Fix force_account_dirty() for hbci kvp updates.

xaccAccountSetName(acc, xaccAccountGetName(acc)) does not do anything,
so g_strdup() the name temporarily.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17044 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler
2008-03-24 18:18:35 +00:00
parent 2b0953a4fb
commit 4f39c3173b
+4 -1
View File
@@ -34,10 +34,13 @@
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, xaccAccountGetName(acct));
xaccAccountSetName(acct, name);
g_free(name);
}
/* Account */