What was the file that you tried to open ??? This sounds like a file association problem.
What makes you think it has something to do with Avast ???