mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-08-14 06:54:43 -05:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user