mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
e6e4a8f9b8
commit
f5f0ecf016
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user