AUDIT: r17867 - gnucash/trunk/src/engine - Bug #569734: Give the template root account a name
Christian Stimming
cstim at cvs.gnucash.org
Sat Jan 31 14:50:01 EST 2009
Author: cstim
Date: 2009-01-31 14:50:01 -0500 (Sat, 31 Jan 2009)
New Revision: 17867
Trac: http://svn.gnucash.org/trac/changeset/17867
Modified:
gnucash/trunk/src/engine/SX-book.c
Log:
Bug #569734: Give the template root account a name
The template root account created as part of the scheduled transaction
infrastructure should have a name. Various parts of the Gnucash engine get
upset if an account doesn't have a name.
Perhaps this name should be localized, but the name of the main root account is
not localized.
Patch by Mike Alexander.
BP
Modified: gnucash/trunk/src/engine/SX-book.c
===================================================================
--- gnucash/trunk/src/engine/SX-book.c 2009-01-31 19:49:55 UTC (rev 17866)
+++ gnucash/trunk/src/engine/SX-book.c 2009-01-31 19:50:01 UTC (rev 17867)
@@ -116,6 +116,7 @@
root = xaccMallocAccount(book);
xaccAccountBeginEdit(root);
xaccAccountSetType(root, ACCT_TYPE_ROOT);
+ xaccAccountSetName(root, "Template Root");
xaccAccountCommitEdit(root);
gnc_book_set_template_root (book, root);
}
More information about the gnucash-changes
mailing list