Skip to content

Commit e67e08e

Browse files
authored
Merge #894(vkrause): Fix downloading to temporary file
2 parents 5479426 + b4bc601 commit e67e08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Quotient/jobs/downloadfilejob.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ BaseJob::Status DownloadFileJob::prepareResult()
158158
} else {
159159
if (d->encryptedFileMetadata.has_value()) {
160160
std::unique_ptr<QFile> tempTempFile = std::make_unique<QTemporaryFile>();
161-
if (!tempTempFile->isWritable()) {
161+
if (!tempTempFile->open(QFile::WriteOnly)) {
162162
qCWarning(JOBS) << "Failed to open temporary file for decryption"
163163
<< tempTempFile->errorString();
164164
return { FileError, "Couldn't open temporary file for decryption"_L1 };

0 commit comments

Comments
 (0)