diff options
author | Tobias Fella <fella@posteo.de> | 2021-08-30 00:53:29 +0200 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2021-12-01 21:56:59 +0100 |
commit | b35a736da2b09fe5cc0091f9fbd370d057503a54 (patch) | |
tree | 7ddf258de6b36480cd5d4503d673eeca88f0b272 /lib/jobs | |
parent | 77a13cfdace5cb27adb52b3a644a155aee522b12 (diff) | |
download | libquotient-b35a736da2b09fe5cc0091f9fbd370d057503a54.tar.gz libquotient-b35a736da2b09fe5cc0091f9fbd370d057503a54.zip |
Handle encrypted file download through existing API
Diffstat (limited to 'lib/jobs')
-rw-r--r-- | lib/jobs/downloadfilejob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jobs/downloadfilejob.cpp b/lib/jobs/downloadfilejob.cpp index 7a7a46f6..e82271eb 100644 --- a/lib/jobs/downloadfilejob.cpp +++ b/lib/jobs/downloadfilejob.cpp @@ -149,7 +149,7 @@ BaseJob::Status DownloadFileJob::prepareResult() } auto decrypted = decrypt(encrypted, d->key, d->iv); d->targetFile->write(decrypted); - d->targetFile->remove(); + d->tempFile->remove(); } else { #endif d->targetFile->close(); |