This is from the UK Visa site:

Q: What if my reason for going to the UK change?
A: A visa is normally issued for a specific purpose. If your rationale for going to the UK changes, you should inform the visa department, preferably the one that issued your visa. You may be asked to make another visa application.