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 committed by Daniel Boles
parent b45aa63b75
commit 13c6310688

View File

@ -1039,7 +1039,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;
}