Make sure temporary files are created, by default, in LyX's temporary directory, rather than in the system tempdir.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26093 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-08-07 13:57:25 +00:00
parent f5251b6bde
commit 5a91890cc1

View File

@ -393,10 +393,7 @@ FileName FileName::tempName(FileName const & temp_dir, string const & mask)
FileName FileName::tempName(string const & mask)
{
QFileInfo tmp_fi(toqstr(mask));
if (!tmp_fi.isAbsolute())
tmp_fi.setFile(package().temp_dir().d->fi.absoluteDir(), toqstr(mask));
return FileName(createTempFile(tmp_fi.absoluteFilePath()));
return tempName(package().temp_dir(), mask);
}