Bit of a long shot lads, but not really sure where else to go

As many of you know I am currently with my beautiful girlfriend Jules and we're expecting our baby in January next year. She's originally from Brazil but now lives here via an "indefinite leave to remain" VISA. That basically means that she can stay in the UK for as long as she wants.
When she moved to the UK she got married shortly after. She left her husband last year, as did I my wife, and we have been perfectly happy together ever since.
Just found out today that her (ex?) husband is going to see a solicitor about getting a divorce, and specifically having her deported from the country. He believes that their marriage is a condition of her VISA to live and stay here, so he will be able to get her deported.
I have absolutely NO idea what to do. He comes from a very well off family, so affording solicitors isn't going to be a problem for him.
Does anyone know whether there would be any grounds for her to be deported, especially as she is pregnant?
:embarassed: