From c2cccd17c7407946c6144ba3f45df491a17fdc56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6hler?= Date: Sun, 11 May 2008 23:22:52 +0000 Subject: [PATCH] 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 --- src/gnome-utils/dialog-account.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gnome-utils/dialog-account.c b/src/gnome-utils/dialog-account.c index 85a55bfbaa..03b89ead51 100644 --- a/src/gnome-utils/dialog-account.c +++ b/src/gnome-utils/dialog-account.c @@ -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); }