mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
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:
parent
f5251b6bde
commit
5a91890cc1
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user