Skip to content

scene: Re-order item list integrity checks

Vlad Zahorodnii requested to merge work/zzag/item-integrity-debug into master

Amends 6738473f.

It's better to check whether Item::childItems() has the same items as Item::sortedChildItems() first because it gives more context about the integrity of the lists.

If Item::sortedChildItems() is corrupted but Item::childItems() is fine, we may miss that important detail because "aliveWindowItems != sortedWindowItems" comes first.

Merge request reports

Loading