mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-16 18:25:11 -06:00
[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:
parent
83ecabebce
commit
94db524c60
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user