I have found a workaround for the above problem.
- activate the trainer, it goes to God Mode even if not selected (the bug)
- activate the cheat, Inf Resources (in my case)
- deactivate the trainer, GodMode is gone
- even with the trainer deactivated the cheat remains InfResources