Fix error in use of AccountFilterDialog structure in budgets

The filter_override variable was not being set and causing multiple
errors in the trace file.
This commit is contained in:
Robert Fewell 2017-07-23 11:37:42 +01:00 committed by John Ralls
parent ae5512e663
commit 64b934f2be

View File

@ -333,6 +333,7 @@ gnc_plugin_page_budget_init (GncPluginPageBudget *plugin_page)
priv->fd.visible_types = -1; /* Start with all types */
priv->fd.show_hidden = FALSE;
priv->fd.show_zero_total = TRUE;
priv->fd.filter_override = g_hash_table_new (g_direct_hash, g_direct_equal);
priv->sigFigs = 1;
recurrenceSet(&priv->r, 1, PERIOD_MONTH, NULL, WEEKEND_ADJ_NONE);
@ -471,6 +472,9 @@ gnc_plugin_page_budget_destroy_widget (GncPluginPage *plugin_page)
priv->budget_view = NULL;
}
// Destroy the filter override hash table
g_hash_table_destroy(priv->fd.filter_override);
gnc_gui_component_clear_watches (priv->component_id);
if (priv->component_id != NO_COMPONENT)