From: Mikko Rasa Date: Wed, 16 Oct 2019 11:15:34 +0000 (+0300) Subject: Emit rebuild_needed from a container when a child is added X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=999cd0294889e5eecd61df18a697d2c55ed6c0d6;p=libs%2Fgltk.git Emit rebuild_needed from a container when a child is added Otherwise the flag won't properly propagate if the container itself is already parented. --- diff --git a/source/container.cpp b/source/container.cpp index 28e0e2f..6e1a356 100644 --- a/source/container.cpp +++ b/source/container.cpp @@ -35,6 +35,7 @@ void Container::add(Widget &wdg) if(wdg.get_animation_interval()) check_animation_interval(); children_rebuild_needed = true; + signal_rebuild_needed.emit(); on_child_added(wdg); }