Skip to content

Commit

Permalink
fix(ui): use cache location for temporary download files
Browse files Browse the repository at this point in the history
Fixes #1454.
  • Loading branch information
trollixx committed Apr 15, 2023
1 parent 4b252cd commit 2f02e1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/ui/docsetsdialog.cpp
Expand Up @@ -359,7 +359,7 @@ void DocsetsDialog::downloadCompleted()

QTemporaryFile *tmpFile = m_tmpFiles[docsetName];
if (!tmpFile) {
tmpFile = new QTemporaryFile(this);
tmpFile = new QTemporaryFile(QStringLiteral("%1/%2.XXXXXX.tmp").arg(Core::Application::cacheLocation(), docsetName), this);
tmpFile->open();
m_tmpFiles.insert(docsetName, tmpFile);
}
Expand Down Expand Up @@ -402,7 +402,7 @@ void DocsetsDialog::downloadProgress(qint64 received, qint64 total)

QTemporaryFile *tmpFile = m_tmpFiles[docsetName];
if (!tmpFile) {
tmpFile = new QTemporaryFile(this);
tmpFile = new QTemporaryFile(QStringLiteral("%1/%2.XXXXXX.tmp").arg(Core::Application::cacheLocation(), docsetName), this);
tmpFile->open();
m_tmpFiles.insert(docsetName, tmpFile);
}
Expand Down

0 comments on commit 2f02e1f

Please sign in to comment.