mirror of
https://github.com/zealdocs/zeal.git
synced 2024-09-11 14:25:52 +03:00
parent
4b252cddb2
commit
2f02e1fe2e
@ -359,7 +359,7 @@ void DocsetsDialog::downloadCompleted()
|
|||||||
|
|
||||||
QTemporaryFile *tmpFile = m_tmpFiles[docsetName];
|
QTemporaryFile *tmpFile = m_tmpFiles[docsetName];
|
||||||
if (!tmpFile) {
|
if (!tmpFile) {
|
||||||
tmpFile = new QTemporaryFile(this);
|
tmpFile = new QTemporaryFile(QStringLiteral("%1/%2.XXXXXX.tmp").arg(Core::Application::cacheLocation(), docsetName), this);
|
||||||
tmpFile->open();
|
tmpFile->open();
|
||||||
m_tmpFiles.insert(docsetName, tmpFile);
|
m_tmpFiles.insert(docsetName, tmpFile);
|
||||||
}
|
}
|
||||||
@ -402,7 +402,7 @@ void DocsetsDialog::downloadProgress(qint64 received, qint64 total)
|
|||||||
|
|
||||||
QTemporaryFile *tmpFile = m_tmpFiles[docsetName];
|
QTemporaryFile *tmpFile = m_tmpFiles[docsetName];
|
||||||
if (!tmpFile) {
|
if (!tmpFile) {
|
||||||
tmpFile = new QTemporaryFile(this);
|
tmpFile = new QTemporaryFile(QStringLiteral("%1/%2.XXXXXX.tmp").arg(Core::Application::cacheLocation(), docsetName), this);
|
||||||
tmpFile->open();
|
tmpFile->open();
|
||||||
m_tmpFiles.insert(docsetName, tmpFile);
|
m_tmpFiles.insert(docsetName, tmpFile);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user