mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
ae5512e663
commit
64b934f2be
@ -333,6 +333,7 @@ gnc_plugin_page_budget_init (GncPluginPageBudget *plugin_page)
|
|||||||
priv->fd.visible_types = -1; /* Start with all types */
|
priv->fd.visible_types = -1; /* Start with all types */
|
||||||
priv->fd.show_hidden = FALSE;
|
priv->fd.show_hidden = FALSE;
|
||||||
priv->fd.show_zero_total = TRUE;
|
priv->fd.show_zero_total = TRUE;
|
||||||
|
priv->fd.filter_override = g_hash_table_new (g_direct_hash, g_direct_equal);
|
||||||
|
|
||||||
priv->sigFigs = 1;
|
priv->sigFigs = 1;
|
||||||
recurrenceSet(&priv->r, 1, PERIOD_MONTH, NULL, WEEKEND_ADJ_NONE);
|
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;
|
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);
|
gnc_gui_component_clear_watches (priv->component_id);
|
||||||
|
|
||||||
if (priv->component_id != NO_COMPONENT)
|
if (priv->component_id != NO_COMPONENT)
|
||||||
|
Loading…
Reference in New Issue
Block a user