Put temp files in .qBittorrent directory. Closes #4462.

This commit is contained in:
Chocobo1 2016-11-29 17:55:58 +08:00 committed by sledgehammer999
parent c38b250667
commit bc9cae199b
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
5 changed files with 12 additions and 2 deletions

View file

@ -491,3 +491,10 @@ QString Utils::Fs::cacheLocation()
locationDir.mkpath(locationDir.absolutePath());
return location;
}
QString Utils::Fs::tempPath()
{
static const QString path = QDir::tempPath() + "/.qBittorrent/";
QDir().mkdir(path);
return path;
}