r16215 - gnucash/trunk/src/gnome-utils - Readd support for account dialogs working only on a subset of account types.

Andreas Köhler andi5 at cvs.gnucash.org
Tue Jun 26 14:43:19 EDT 2007


Author: andi5
Date: 2007-06-26 14:43:16 -0400 (Tue, 26 Jun 2007)
New Revision: 16215
Trac: http://svn.gnucash.org/trac/changeset/16215

Modified:
   gnucash/trunk/src/gnome-utils/dialog-account.c
Log:
Readd support for account dialogs working only on a subset of account types.

This was added in r14897, but lost in the merge r15066 of trunk into
branches/remove-group2.


Modified: gnucash/trunk/src/gnome-utils/dialog-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-account.c	2007-06-26 16:56:38 UTC (rev 16214)
+++ gnucash/trunk/src/gnome-utils/dialog-account.c	2007-06-26 18:43:16 UTC (rev 16215)
@@ -1414,6 +1414,7 @@
   gnc_commodity *commodity, *parent_commodity;
   AccountWindow *aw;
   Account *account;
+  GList *list;
 
   g_return_val_if_fail(book, NULL);
 
@@ -1423,6 +1424,10 @@
   aw->modal = modal;
   aw->dialog_type = NEW_ACCOUNT;
 
+  aw->valid_types = 0;
+  for (list = valid_types; list; list = list->next)
+    aw->valid_types |= (1 << GPOINTER_TO_INT (list->data));
+
   account = xaccMallocAccount (book);
   aw->account = *xaccAccountGetGUID (account);
 



More information about the gnucash-changes mailing list