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

This commit is contained in:
Chocobo1 2016-11-29 17:55:58 +08:00
parent d84461c9b2
commit cffa729ac5
5 changed files with 12 additions and 2 deletions

View file

@ -518,3 +518,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;
}