mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Put temp files in .qBittorrent directory. Closes #4462.
This commit is contained in:
parent
d84461c9b2
commit
cffa729ac5
5 changed files with 12 additions and 2 deletions
|
@ -142,7 +142,7 @@ void DownloadHandler::init()
|
|||
|
||||
bool DownloadHandler::saveToFile(const QByteArray &replyData, QString &filePath)
|
||||
{
|
||||
QTemporaryFile *tmpfile = new QTemporaryFile;
|
||||
QTemporaryFile *tmpfile = new QTemporaryFile(Utils::Fs::tempPath() + "XXXXXX");
|
||||
if (!tmpfile->open()) {
|
||||
delete tmpfile;
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue