That's unfortunate. If you had come here first you would have found out that the IDE places the modified sketch in the TEMP directory. Copying that file followed by some fairly minor edits would have you back in business.
There is a slight chance the modified sketch is still in the TEMP directory.