forked from AuroraMiddleware/gtk
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:
parent
2dd85b826f
commit
1750922631
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user