r17791 - gnucash/trunk/src/backend/sql - When loading a budget, set the recurrence so that it has the correct date info.

Phil Longstaff plongstaff at cvs.gnucash.org
Thu Jan 1 18:12:38 EST 2009


Author: plongstaff
Date: 2009-01-01 18:12:38 -0500 (Thu, 01 Jan 2009)
New Revision: 17791
Trac: http://svn.gnucash.org/trac/changeset/17791

Modified:
   gnucash/trunk/src/backend/sql/gnc-budget-sql.c
Log:
When loading a budget, set the recurrence so that it has the correct date info.


Modified: gnucash/trunk/src/backend/sql/gnc-budget-sql.c
===================================================================
--- gnucash/trunk/src/backend/sql/gnc-budget-sql.c	2009-01-01 18:17:56 UTC (rev 17790)
+++ gnucash/trunk/src/backend/sql/gnc-budget-sql.c	2009-01-01 23:12:38 UTC (rev 17791)
@@ -83,6 +83,8 @@
     gnc_sql_load_object( be, row, GNC_ID_BUDGET, pBudget, col_table );
 	r = g_new0( Recurrence, 1 );
 	gnc_sql_recurrence_load( be, gnc_budget_get_guid( pBudget ), r );
+	gnc_budget_set_recurrence( pBudget, r );
+	g_free( r );
 	gnc_budget_commit_edit( pBudget );
 
 	return pBudget;



More information about the gnucash-changes mailing list