Bugfix: when last renderable and visible perspective is closed, the new
perspective is not selected.