Bug 18067 file extensions on save

QTemporaryFile* tmpFile = NULL;