stack: Fix a corner-case

When the stack goes empty, we were failing to reset
the visible_child member to NULL, causing problems later
on, since we don't have a ref for it.
This commit is contained in:
Matthias Clasen 2019-02-13 09:00:00 -05:00
parent 2dd85b826f
commit 1750922631

View File

@ -1140,9 +1140,6 @@ set_visible_child (GtkStack *stack,
if (child_info == priv->visible_child)
return;
if (child_info == NULL)
return;
if (priv->pages)
{
guint position;