Put temporary files in qbt own temp folder

This commit is contained in:
Chocobo1 2018-07-31 01:23:35 +08:00
parent e1727c9a6a
commit 9612a75faa
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
2 changed files with 3 additions and 2 deletions

View file

@ -2300,7 +2300,7 @@ bool Session::loadMetadata(const MagnetUri &magnetUri)
p.max_connections = maxConnectionsPerTorrent();
p.max_uploads = maxUploadsPerTorrent();
QString savePath = QString("%1/%2").arg(QDir::tempPath(), hash);
QString savePath = QString("%1/%2").arg(Utils::Fs::tempPath(), hash);
p.save_path = Utils::Fs::toNativePath(savePath).toStdString();
// Forced start