From dfdafc71851fd4f1763ff4b49931e1de9109d12d Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Tue, 30 Oct 2018 11:20:45 +0000 Subject: [PATCH] Bug 796915 - Update Account colour background The account tree view background colour does not update straight away with the preference option so add gnc_tree_view_account_refilter to the colour change call back to force a refresh. --- gnucash/gnome-utils/gnc-tree-view-account.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnucash/gnome-utils/gnc-tree-view-account.c b/gnucash/gnome-utils/gnc-tree-view-account.c index c1cac820b7..f5e5676141 100644 --- a/gnucash/gnome-utils/gnc-tree-view-account.c +++ b/gnucash/gnome-utils/gnc-tree-view-account.c @@ -657,6 +657,9 @@ gnc_tree_view_account_color_update (gpointer gsettings, gchar *key, gpointer use priv = GNC_TREE_VIEW_ACCOUNT_GET_PRIVATE(view); if (g_strcmp0 (key, GNC_PREF_ACCOUNT_COLOR) == 0) priv->show_account_color = gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, key); + + // do a refilter so the tree view background color gets updated + gnc_tree_view_account_refilter (view); } /** Add the account color background data function to the GncTreeViewAccount column to