Bug 18067 file extensions on save

We could just create QTemporaryFile objects here:

    QTemporaryFile* tmpFile = new QTemporaryFile(QDir::tempPath() + "/XXXXXX" + extension);