AUDIT: r17044 - gnucash/trunk/src/import-export/hbci - Fix force_account_dirty() for hbci kvp updates.

Andreas Köhler andi5 at cvs.gnucash.org
Mon Mar 24 14:18:35 EDT 2008


Author: andi5
Date: 2008-03-24 14:18:35 -0400 (Mon, 24 Mar 2008)
New Revision: 17044
Trac: http://svn.gnucash.org/trac/changeset/17044

Modified:
   gnucash/trunk/src/import-export/hbci/gnc-hbci-kvp.c
Log:
Fix force_account_dirty() for hbci kvp updates.

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


Modified: gnucash/trunk/src/import-export/hbci/gnc-hbci-kvp.c
===================================================================
--- gnucash/trunk/src/import-export/hbci/gnc-hbci-kvp.c	2008-03-24 17:02:38 UTC (rev 17043)
+++ gnucash/trunk/src/import-export/hbci/gnc-hbci-kvp.c	2008-03-24 18:18:35 UTC (rev 17044)
@@ -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 */



More information about the gnucash-changes mailing list