Fix matching encrypted file for download

This commit is contained in:
Daniel Nicoletti 2018-04-03 14:52:44 -03:00 committed by Tomaz Canabrava
parent d93f7269b8
commit a7a8de8787

View file

@ -81,7 +81,7 @@ void PropagateDownloadEncrypted::checkFolderEncryptedMetadata(const QJsonDocumen
for (const EncryptedFile &file : files) {
qCDebug(lcPropagateDownloadEncrypted) << "file" << filename << file.encryptedFilename << file.originalFilename << file.encryptionKey;
if (filename == file.encryptedFilename) {
if (filename == file.originalFilename) {
_encryptedInfo = file;
qCDebug(lcPropagateDownloadEncrypted) << "Found matching encrypted metadata for file, starting download";
emit folderStatusEncrypted();