StateEditor: breaks on cyclic dependency

What to do:

  • Create a state A.
  • Create a state B.
  • Add A as substate of B.
  • Add B as substate of A.

The gui hangs and the mem usage increases (probably an infinite loop).