edited readConfig

No need for an instance of a QFileDialog