]> git.tdb.fi Git - libs/gltk.git/commitdiff
Emit rebuild_needed from a container when a child is added
authorMikko Rasa <tdb@tdb.fi>
Wed, 16 Oct 2019 11:15:34 +0000 (14:15 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 16 Oct 2019 11:15:34 +0000 (14:15 +0300)
Otherwise the flag won't properly propagate if the container itself is
already parented.

source/container.cpp

index 28e0e2feafff2105017c61bb35dda55656cf6d0e..6e1a3562f5280a853d1996f6b99e973f0a0d25eb 100644 (file)
@@ -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);
 }