don’t keep datasets selected if there is no layer selected as well.