"some dude's sex life"
She could have been his chess partner, and if he'd acted the same way on her behalf it would have been fireable. The sex is immaterial and anyone who thinks otherwise hasn't read up on this or is selling something.
The sex is just the icing on top of the poor judgement.