Tax Tables combo does not set the active one

Fixed by correcting spelling of tax table qof type, should
'gncTaxTable'. Also fixed setting tax table combo to 'none' when page
reset button used.
This commit is contained in:
Robert Fewell 2022-04-21 09:56:30 +01:00
parent 5d15647430
commit db6a8f809b
2 changed files with 4 additions and 1 deletions

View File

@ -167,6 +167,9 @@ public:
if (taxtable)
gnc_simple_combo_set_value(GTK_COMBO_BOX(get_widget()),
GNC_TAXTABLE(taxtable));
else
gnc_simple_combo_set_value(GTK_COMBO_BOX(get_widget()),
nullptr);
}
void set_option_from_ui_item(GncOption& option) noexcept override
{

View File

@ -587,7 +587,7 @@ qof_instance_from_guid(GncGUID* guid, GncOptionUIType type)
qof_type = "gncInvoice";
break;
case GncOptionUIType::TAX_TABLE:
qof_type = "gncTaxtable";
qof_type = "gncTaxTable";
break;
case GncOptionUIType::ACCOUNT_LIST:
case GncOptionUIType::ACCOUNT_SEL: