Set the dirty flag on the view each time the selection changes.