OutlineItem: Store parent and refNum

This way when opening our children we make sure they are not also our
parent (i.e. there's a loop)

Fixes bug #102914
2 files changed