mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Object reference error on terminal
Opening options dialog would generate the following error on the terminal, g_object_ref: assertion 'G_IS_OBJECT (object)' failed which was traced back to GncOptionDateUIItem trying to use a null pointer to reference the GtkUIItem.
This commit is contained in:
parent
6d390dc6b4
commit
3fcaaef657
@ -1365,7 +1365,7 @@ class GncOptionDateUIItem : public GncOptionGtkUIItem
|
||||
{
|
||||
public:
|
||||
GncOptionDateUIItem(GncDateEntryPtr entry, GncOptionUIType type) :
|
||||
GncOptionGtkUIItem{nullptr, type}, m_entry{std::move(entry)} { }
|
||||
GncOptionGtkUIItem{entry->get_widget(), type}, m_entry{std::move(entry)} { }
|
||||
~GncOptionDateUIItem() = default;
|
||||
void clear_ui_item() override { m_entry = nullptr; }
|
||||
void set_ui_item_from_option(GncOption& option) noexcept override
|
||||
|
Loading…
Reference in New Issue
Block a user