Fixed the annoying bug that cancelling a QFileDialog still commenced with everything associated with loading a file.