r17055 - gnucash/branches/2.2/src/import-export/hbci - [r17044] Fix force_account_dirty() for hbci kvp updates.

Christian Stimming cstim at cvs.gnucash.org
Wed Mar 26 17:04:56 EDT 2008


Author: cstim
Date: 2008-03-26 17:04:56 -0400 (Wed, 26 Mar 2008)
New Revision: 17055
Trac: http://svn.gnucash.org/trac/changeset/17055

Modified:
   gnucash/branches/2.2/src/import-export/hbci/gnc-hbci-kvp.c
Log:
[r17044] Fix force_account_dirty() for hbci kvp updates.

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


Modified: gnucash/branches/2.2/src/import-export/hbci/gnc-hbci-kvp.c
===================================================================
--- gnucash/branches/2.2/src/import-export/hbci/gnc-hbci-kvp.c	2008-03-26 21:04:48 UTC (rev 17054)
+++ gnucash/branches/2.2/src/import-export/hbci/gnc-hbci-kvp.c	2008-03-26 21:04:56 UTC (rev 17055)
@@ -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