]> git.lyx.org Git - lyx.git/commitdiff
Fix bug due to wrong interpretation of Qt's doc.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 24 Jul 2008 21:13:33 +0000 (21:13 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 24 Jul 2008 21:13:33 +0000 (21:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25872 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/FileName.cpp

index 8e01df441001ad2be8c09bf9d4f204ec5aa8b23e..799673a8eb53de4b2a218c33cbe54fbe9833a338 100644 (file)
@@ -379,7 +379,8 @@ static string createTempFile(QString const & mask)
 
 FileName FileName::tempName(FileName const & temp_dir, string const & mask)
 {
-       QFileInfo tmp_fi(temp_dir.d->fi.absoluteDir(), toqstr(mask));
+       QFileInfo tmp_fi(QDir(temp_dir.d->fi.absoluteFilePath()), toqstr(mask));
+       LYXERR(Debug::FILES, "Temporary file in " << tmp_fi.absoluteFilePath());
        return FileName(createTempFile(tmp_fi.absoluteFilePath()));
 }