mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* 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:
parent
1645a7a9b6
commit
df98be13fb
@ -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>
|
||||
|
||||
* src/engine/gnc-numeric.c: Rich Johnson's patch to convert
|
||||
|
@ -461,6 +461,16 @@ gnc_reconcile_list_is_reconciled(gpointer item, gpointer user_data)
|
||||
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 *
|
||||
* refreshes the list *
|
||||
@ -478,6 +488,10 @@ gnc_reconcile_list_refresh (GNCReconcileList *list)
|
||||
|
||||
qlist = GNC_QUERY_LIST(list);
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user