* src/gnome/reconcile-list.c: make sure to verify that the items

in the reconcile hash are still around after a refresh.  Fixes
	  bug #129121.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9722 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2003-12-12 02:09:50 +00:00
parent 1645a7a9b6
commit df98be13fb
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2003-12-11 Derek Atkins <derek@ihtfp.com>
* src/gnome/reconcile-list.c: make sure to verify that the items
in the reconcile hash are still around after a refresh. Fixes
bug #129121.
2003-12-08 Derek Atkins <derek@ihtfp.com> 2003-12-08 Derek Atkins <derek@ihtfp.com>
* src/engine/gnc-numeric.c: Rich Johnson's patch to convert * src/engine/gnc-numeric.c: Rich Johnson's patch to convert

View File

@ -461,6 +461,16 @@ gnc_reconcile_list_is_reconciled(gpointer item, gpointer user_data)
return GINT_TO_POINTER(current != NULL); return GINT_TO_POINTER(current != NULL);
} }
static void
grl_refresh_helper (gpointer key, gpointer value, gpointer user_data)
{
GNCReconcileList *list = user_data;
GNCQueryList *qlist = GNC_QUERY_LIST(list);
if (!gnc_query_list_item_in_list(qlist, key))
g_hash_table_remove(list->reconciled, key);
}
/********************************************************************\ /********************************************************************\
* gnc_reconcile_list_refresh * * gnc_reconcile_list_refresh *
* refreshes the list * * refreshes the list *
@ -478,6 +488,10 @@ gnc_reconcile_list_refresh (GNCReconcileList *list)
qlist = GNC_QUERY_LIST(list); qlist = GNC_QUERY_LIST(list);
gnc_query_list_refresh(qlist); gnc_query_list_refresh(qlist);
/* Now verify that everything in the reconcile hash is still in qlist */
if (list->reconciled)
g_hash_table_foreach(list->reconciled, grl_refresh_helper, list);
} }