From b8d00316ee8850fe810a4c9b023465d530574fc9 Mon Sep 17 00:00:00 2001 From: jean Date: Tue, 14 Jul 2020 19:28:03 -0700 Subject: [PATCH] Make the edit dialog refresh the auto-interest flag display based on pref --- gnucash/gnome-utils/dialog-account.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnucash/gnome-utils/dialog-account.c b/gnucash/gnome-utils/dialog-account.c index 9556bc2591f..9180979eebd 100644 --- a/gnucash/gnome-utils/dialog-account.c +++ b/gnucash/gnome-utils/dialog-account.c @@ -1100,9 +1100,14 @@ set_auto_interest_box(AccountWindow *aw) Account* account = aw_get_account (aw); gboolean flag = account_type_has_auto_interest_xfer (aw->type); gtk_widget_set_sensitive (GTK_WIDGET (aw->auto_interest_button), flag); + gtk_widget_set_sensitive (GTK_WIDGET (aw->auto_interest_button_label), flag); if (!flag) gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (aw->auto_interest_button), FALSE); - gtk_widget_set_sensitive (GTK_WIDGET (aw->auto_interest_button_label), flag); + else + { + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (aw->auto_interest_button), + xaccAccountGetAutoInterest (account)); + } }