Fix #69: Cannot restore a collapsed tree/list view