mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-08-14 06:54:43 -05:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user