mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Save the Account page filter setting to the state file
Use the newly created functions to save and restore the account filter settings to the saved 'Account Hierarchy' section of the state file.
This commit is contained in:
parent
274dd2f8bc
commit
fbabc147bf
@ -759,6 +759,10 @@ gnc_plugin_page_account_tree_create_widget (GncPluginPage *plugin_page)
|
|||||||
gnc_plugin_page_account_tree_summarybar_position_changed,
|
gnc_plugin_page_account_tree_summarybar_position_changed,
|
||||||
page);
|
page);
|
||||||
|
|
||||||
|
// Read account filter state information from account section
|
||||||
|
gnc_tree_view_account_restore_filter (GNC_TREE_VIEW_ACCOUNT(priv->tree_view), &priv->fd,
|
||||||
|
gnc_state_get_current(), gnc_tree_view_get_state_section (GNC_TREE_VIEW(priv->tree_view)));
|
||||||
|
|
||||||
LEAVE("widget = %p", priv->widget);
|
LEAVE("widget = %p", priv->widget);
|
||||||
return priv->widget;
|
return priv->widget;
|
||||||
}
|
}
|
||||||
@ -782,6 +786,10 @@ gnc_plugin_page_account_tree_destroy_widget (GncPluginPage *plugin_page)
|
|||||||
gnc_plugin_page_account_tree_summarybar_position_changed,
|
gnc_plugin_page_account_tree_summarybar_position_changed,
|
||||||
page);
|
page);
|
||||||
|
|
||||||
|
// Save account filter state information to account section
|
||||||
|
gnc_tree_view_account_save_filter (GNC_TREE_VIEW_ACCOUNT(priv->tree_view), &priv->fd,
|
||||||
|
gnc_state_get_current(), gnc_tree_view_get_state_section (GNC_TREE_VIEW(priv->tree_view)));
|
||||||
|
|
||||||
// Destroy the filter override hash table
|
// Destroy the filter override hash table
|
||||||
g_hash_table_destroy(priv->fd.filter_override);
|
g_hash_table_destroy(priv->fd.filter_override);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user