mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06: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:
parent
37300535b6
commit
c2cccd17c7
@ -319,7 +319,8 @@ gnc_ui_to_account(AccountWindow *aw)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (aw->type != xaccAccountGetType (account)) {
|
if (aw->dialog_type == EDIT_ACCOUNT
|
||||||
|
&& aw->type != xaccAccountGetType (account)) {
|
||||||
/* Just refreshing won't work. */
|
/* Just refreshing won't work. */
|
||||||
aw_call_destroy_callbacks (account);
|
aw_call_destroy_callbacks (account);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user