]> git.lyx.org Git - features.git/blobdiff - src/support/filetools.cpp
Replace home made temp file creation with safer (and cleaner) Qt' solution. Should...
[features.git] / src / support / filetools.cpp
index aa9d99da0edcc0200452e712a02702cd8bbbbfd3..eb982a2f8ab8af18bf64aa45c0181f71f83048a3 100644 (file)
@@ -323,11 +323,6 @@ static FileName createTmpDir(FileName const & tempdir, string const & mask)
 
        string const tmp_dir = tempdir.absFilename() + "/" + mask;
        FileName const tmpfl = FileName::tempName(tmp_dir);
-       // FileName::tempName actually creates a file to make sure that it
-       // stays unique. So we have to delete it before we can create
-       // a dir with the same name. Note also that we are not thread
-       // safe because of the gap between unlink and mkdir. (Lgb)
-       tmpfl.removeFile();
 
        if (tmpfl.empty() || !tmpfl.createDirectory(0700)) {
                LYXERR0("LyX could not create the temporary directory '" << tmp_dir