Do not close registers when creating a new account.

Types of new accounts cannot conflict with types of anchor accounts of
open registers, as no register can have accessed it yet.  On the
contrary, killing the general ledger that is used to input a new account
is contraproductive.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17153 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2008-05-11 23:22:52 +00:00
parent 37300535b6
commit c2cccd17c7

View File

@ -319,7 +319,8 @@ gnc_ui_to_account(AccountWindow *aw)
return;
}
if (aw->type != xaccAccountGetType (account)) {
if (aw->dialog_type == EDIT_ACCOUNT
&& aw->type != xaccAccountGetType (account)) {
/* Just refreshing won't work. */
aw_call_destroy_callbacks (account);
}