AUDIT: r17153 - gnucash/trunk/src/gnome-utils - Do not close registers when creating a new account.

Andreas Köhler andi5 at cvs.gnucash.org
Sun May 11 19:22:52 EDT 2008


Author: andi5
Date: 2008-05-11 19:22:52 -0400 (Sun, 11 May 2008)
New Revision: 17153
Trac: http://svn.gnucash.org/trac/changeset/17153

Modified:
   gnucash/trunk/src/gnome-utils/dialog-account.c
Log:
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


Modified: gnucash/trunk/src/gnome-utils/dialog-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-account.c	2008-05-11 21:41:01 UTC (rev 17152)
+++ gnucash/trunk/src/gnome-utils/dialog-account.c	2008-05-11 23:22:52 UTC (rev 17153)
@@ -319,7 +319,8 @@
     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);
   }



More information about the gnucash-changes mailing list