mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
There were critical errors in trace file.
Test for item being part of container first.
This commit is contained in:
parent
7f7ec67feb
commit
0abc3e32a1
@ -678,6 +678,9 @@ gnc_item_edit_hide_popup (GncItemEdit *item_edit)
|
|||||||
if (!item_edit->is_popup)
|
if (!item_edit->is_popup)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (gtk_widget_get_parent (GTK_WIDGET(item_edit->popup_item)) != GTK_WIDGET (item_edit->sheet))
|
||||||
|
return;
|
||||||
|
|
||||||
gtk_container_remove (GTK_CONTAINER(item_edit->sheet), item_edit->popup_item);
|
gtk_container_remove (GTK_CONTAINER(item_edit->sheet), item_edit->popup_item);
|
||||||
gtk_arrow_set (item_edit->popup_toggle.arrow,
|
gtk_arrow_set (item_edit->popup_toggle.arrow,
|
||||||
GTK_ARROW_DOWN, GTK_SHADOW_IN);
|
GTK_ARROW_DOWN, GTK_SHADOW_IN);
|
||||||
|
Loading…
Reference in New Issue
Block a user