aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/downloadfilejob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jobs/downloadfilejob.cpp')
-rw-r--r--lib/jobs/downloadfilejob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/jobs/downloadfilejob.cpp b/lib/jobs/downloadfilejob.cpp
index 85c235c7..032b24f2 100644
--- a/lib/jobs/downloadfilejob.cpp
+++ b/lib/jobs/downloadfilejob.cpp
@@ -128,7 +128,7 @@ BaseJob::Status DownloadFileJob::prepareResult()
QByteArray encrypted = d->tempFile->readAll();
EncryptedFileMetadata file = *d->encryptedFile;
- const auto decrypted = file.decryptFile(encrypted);
+ const auto decrypted = decryptFile(encrypted, file);
d->targetFile->write(decrypted);
d->tempFile->remove();
} else {
@@ -153,7 +153,7 @@ BaseJob::Status DownloadFileJob::prepareResult()
const auto encrypted = d->tempFile->readAll();
EncryptedFileMetadata file = *d->encryptedFile;
- const auto decrypted = file.decryptFile(encrypted);
+ const auto decrypted = decryptFile(encrypted, file);
d->tempFile->write(decrypted);
} else {
#endif