]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileName.cpp
installer: further preparation
[lyx.git] / src / support / FileName.cpp
index fa8cdac73f3b3634258652b4e2445d780def6e83..f0489309d549ae44a61df42c888225eb23eadfe5 100644 (file)
@@ -443,7 +443,7 @@ static string createTempFile(QString const & mask)
        //        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.");