From 3c084347680b0e8f93883a08f4787bd617acbc74 Mon Sep 17 00:00:00 2001 From: Sherlock <119709043+agwekixj@users.noreply.github.com> Date: Mon, 6 Oct 2025 11:00:19 -0700 Subject: [PATCH] Fix saving account page changes Partially reverts a fix for bug 799249 that prevented preserving modifications to the account tree. --- gnucash/gnome/gnc-plugin-page-account-tree.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gnucash/gnome/gnc-plugin-page-account-tree.cpp b/gnucash/gnome/gnc-plugin-page-account-tree.cpp index eb7f8c149b..37ec47fccc 100644 --- a/gnucash/gnome/gnc-plugin-page-account-tree.cpp +++ b/gnucash/gnome/gnc-plugin-page-account-tree.cpp @@ -767,11 +767,9 @@ gnc_plugin_page_account_tree_destroy_widget (GncPluginPage *plugin_page) gnc_prefs_remove_cb_by_func(GNC_PREFS_GROUP_ACCT_SUMMARY, GNC_PREF_END_PERIOD, (gpointer)accounting_period_changed_cb, page); -// Save account filter state information to account section + // 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))); - g_object_unref(G_OBJECT(priv->tree_view)); - priv->tree_view = NULL; // Destroy the filter override hash table g_hash_table_destroy(priv->fd.filter_override);