mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 21:28:07 -06:00
Put temp files in .qBittorrent directory. Closes #4462.
This commit is contained in:
committed by
sledgehammer999
parent
c38b250667
commit
bc9cae199b
@@ -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;
|
||||
}
|
||||
|
||||
@@ -67,6 +67,7 @@ namespace Utils
|
||||
/* End of Qt4 code */
|
||||
|
||||
QString cacheLocation();
|
||||
QString tempPath();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user