Fixed bug 1046.

This may interfere with File Extension selections based on the editor.
Need to run those tests again.
Merge branch 'master' of https://github.com/jdawes/seng426project