Skip to content

Fix appendChildNode() call

Antonio Rojas requested to merge arojas/qtlocation:fix-hang into kde/5.15

The QSGNode::appendChildNode() method checks that its parameter must not have a parent. Before this patch we always called appendChildNode() on a node that already had parent, which was always leading to ASSERT in a debug build. Seems that the right approach would be to call this method, if the node does not have a parent.

Task-number: QTBUG-96795 Change-Id: I10e17d17eeadec41f8da8939f4a0009176bbbdbb Reviewed-by: Alex Blasche alexander.blasche@qt.io Reviewed-by: Lauri Laanmets lauri.laanmets@eesti.ee (cherry picked from commit 6cb20a08)

Merge request reports