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

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17867 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2009-01-31 19:50:01 +00:00
parent e6e4a8f9b8
commit f5f0ecf016

View File

@ -116,6 +116,7 @@ sxtg_book_begin (QofBook *book)
root = xaccMallocAccount(book);
xaccAccountBeginEdit(root);
xaccAccountSetType(root, ACCT_TYPE_ROOT);
xaccAccountSetName(root, "Template Root");
xaccAccountCommitEdit(root);
gnc_book_set_template_root (book, root);
}