From 7e251edd6e5c7cb9d381e6d647908cf9675eb984 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Wed, 8 Jul 2020 15:35:39 +0200 Subject: [PATCH] Compare the unencrypted filename with the originalName Otherwise obviously we'd never find the files in the metadata. Signed-off-by: Kevin Ottens --- src/libsync/propagateremotedeleteencrypted.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/propagateremotedeleteencrypted.cpp b/src/libsync/propagateremotedeleteencrypted.cpp index dd6619fb9..f9048067a 100644 --- a/src/libsync/propagateremotedeleteencrypted.cpp +++ b/src/libsync/propagateremotedeleteencrypted.cpp @@ -81,7 +81,7 @@ void PropagateRemoteDeleteEncrypted::slotFolderEncryptedMetadataReceived(const Q bool found = false; const QVector files = metadata.files(); for (const EncryptedFile &file : files) { - if (file.encryptedFilename == fileName) { + if (file.originalFilename == fileName) { metadata.removeEncryptedFile(file); found = true; break;