// same file again. To make this safe the QTemporaryFile object
// needs to be kept for the whole life time of the temp file name.
// This can be achieved by using the TempFile class.
- QTemporaryFile qt_tmp(mask);
+ QTemporaryFile qt_tmp(mask + ".XXXXXXXXXXXX");
if (qt_tmp.open()) {
string const temp_file = fromqstr(qt_tmp.fileName());
LYXERR(Debug::FILES, "Temporary file `" << temp_file << "' created.");