I suspect this code should be moved to SceneEdition. Why have it where if PaintingWidget is always null for EdititionWindow?