[stokc-txn-asst] Add default currency to GncAccountSelector

Set the default currency to the transaction currency for creating
new accounts.
This commit is contained in:
John Ralls 2023-09-08 16:23:52 -07:00
parent 83ecabebce
commit 94db524c60

View File

@ -1593,6 +1593,8 @@ GncAccountSelector::GncAccountSelector (GtkBuilder *builder, AccountTypeList typ
auto curr_list = accum(null_glist, currency);
gnc_account_sel_set_new_account_ability(GNC_ACCOUNT_SEL(m_selector), true);
gnc_account_sel_set_acct_filters(GNC_ACCOUNT_SEL(m_selector), acct_list, curr_list);
gnc_account_sel_set_default_new_commodity(GNC_ACCOUNT_SEL(m_selector), currency);
gnc_account_sel_set_new_account_modal (GNC_ACCOUNT_SEL(m_selector), true);
g_list_free(acct_list);
g_list_free(curr_list);
}