It's a red flag but not a dealbreaker. I flirt a lot at work because, well, I'm a waitress, it's part of the job. But my wife is the only one to whom I show my real feelings, good and bad.
It sounds like your ex trusted you with her real feelings. In this case, that meant the relationship was doomed, but isn't that better than stringing you along or manipulating you?