Commit aacaae77 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko Committed by Adrien Plazas
Browse files

stackable-box: Check is visible child exists in folded mode

The assumption has always been that if the widget is folded, there's a
visible child. That's true for leaflet, but not for deck, so we need a
check to avoid a crash.

Fixes Librem5/libhandy#243

Signed-off-by: Alexander Mikhaylenko's avatarAlexander Mikhaylenko <>
parent b4819b03
Pipeline #54460 passed with stages
in 16 minutes and 26 seconds
......@@ -1487,6 +1487,9 @@ hdy_stackable_box_size_allocate_folded (HdyStackableBox *self,
directed_children = get_directed_children (self);
visible_child = self->visible_child;
if (!visible_child)
for (children = directed_children; children; children = children->next) {
child_info = children->data;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment