mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 799010 - gnc-register-account-sel-limited-option errors doesn't work
Wrong cast in GncGtkAccountSelUIItem::set_option_from_ui_item.
This commit is contained in:
parent
9891a68f44
commit
e5f9e4ea6d
@ -1082,7 +1082,8 @@ public:
|
||||
void set_option_from_ui_item(GncOption& option) noexcept override
|
||||
{
|
||||
auto widget{GNC_ACCOUNT_SEL(get_widget())};
|
||||
option.set_value(qof_instance_cast((gnc_account_sel_get_account(widget))));
|
||||
// Must cast it to const Account* to get the template specialization to recognize it.
|
||||
option.set_value(static_cast<const Account*>(gnc_account_sel_get_account(widget)));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user