Skip to content

Commit

Permalink
Make the edit dialog refresh the auto-interest flag display based on …
Browse files Browse the repository at this point in the history
…pref
  • Loading branch information
jean committed Jul 15, 2020
1 parent 705f0db commit b8d0031
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gnucash/gnome-utils/dialog-account.c
Expand Up @@ -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));
}

}

Expand Down

0 comments on commit b8d0031

Please sign in to comment.