r14714 - gnucash/branches/remove-group - Fix a mistake in the updated tree model.

David Hampton hampton at cvs.gnucash.org
Tue Aug 22 23:09:41 EDT 2006


Author: hampton
Date: 2006-08-22 23:09:40 -0400 (Tue, 22 Aug 2006)
New Revision: 14714
Trac: http://svn.gnucash.org/trac/changeset/14714

Modified:
   gnucash/branches/remove-group/ChangeLog
   gnucash/branches/remove-group/src/gnome-utils/gnc-tree-model-account.c
Log:
Fix a mistake in the updated tree model.


Modified: gnucash/branches/remove-group/ChangeLog
===================================================================
--- gnucash/branches/remove-group/ChangeLog	2006-08-22 21:51:36 UTC (rev 14713)
+++ gnucash/branches/remove-group/ChangeLog	2006-08-23 03:09:40 UTC (rev 14714)
@@ -1,5 +1,8 @@
 2006-08-22  David Hampton  <hampton at employees.org>
 
+	* src/gnome-utils/gnc-tree-model-account.c: Fix a mistake in the
+	updated tree model.
+
 	* src/backend/file/gnc-account-xml-v2.c:
 	* src/backend/file/io-gncxml-v2.c:
 	* src/engine/Account.[ch]:

Modified: gnucash/branches/remove-group/src/gnome-utils/gnc-tree-model-account.c
===================================================================
--- gnucash/branches/remove-group/src/gnome-utils/gnc-tree-model-account.c	2006-08-22 21:51:36 UTC (rev 14713)
+++ gnucash/branches/remove-group/src/gnome-utils/gnc-tree-model-account.c	2006-08-23 03:09:40 UTC (rev 14714)
@@ -920,9 +920,10 @@
 	priv = GNC_TREE_MODEL_ACCOUNT_GET_PRIVATE(model);
 
 	if (iter == NULL) {
-		num = gnc_account_n_children(priv->root);
-		LEAVE("count is %d", num);
-		return num;
+		/* How many children does the invisible root node
+		 * have. One! Its the real root account node. */
+		LEAVE("count is 1");
+		return 1;
 	}
 
 	g_return_val_if_fail (iter != NULL, FALSE);



More information about the gnucash-changes mailing list