[wx->Qt] Fix regression when opening file.

The file wasn't opened automatically in the right module anymore.