modelbutton: set_relative_to(NULL) the popover in dispose

We do set_relative_to(menu_button) when creating it so we should do this
here (or nothing).
This commit is contained in:
Timm Bäder 2017-10-06 17:35:28 +02:00
parent 2c28c627c1
commit d832e5b2dd

View File

@ -1038,7 +1038,7 @@ gtk_menu_button_dispose (GObject *object)
if (priv->popover)
{
gtk_widget_destroy (priv->popover);
gtk_popover_set_relative_to (GTK_POPOVER (priv->popover), NULL);
priv->popover = NULL;
}