Bug #166101: Do not overwrite first split (blank_split) of a transaction.

When entering a split transaction, the account of the top-most split is
set to the register's anchor account, even if the user chose something
different.  Avoid this by checking a flag first which signals whether
the split has been modified.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17077 57a11ea4-9604-0410-9ed3-97b8803252fd
2.4
Andreas Köhler 18 years ago
parent 473310ef52
commit bc3bd4a097

@ -1400,7 +1400,7 @@ gnc_split_register_save (SplitRegister *reg, gboolean do_commit)
g_assert(xaccTransIsOpen(trans));
/* If we are committing the blank split, add it to the account now */
if (trans == blank_trans)
if (split == blank_split && !info->blank_split_edited)
{
account = gnc_split_register_get_default_account(reg);
if (account)

Loading…
Cancel
Save