Use QSaveFile for saving files. Fixes #234.