Do not detach encrypted files vector

This commit is contained in:
Daniel Nicoletti 2018-04-04 10:13:46 -03:00 committed by Tomaz Canabrava
parent 3eb3535d0f
commit 3e05bd1da0

View file

@ -131,9 +131,9 @@ void PropagateUploadEncrypted::slotFolderEncryptedMetadataReceived(const QJsonDo
// Find existing metadata for this file
bool found = false;
EncryptedFile encryptedFile;
QVector<EncryptedFile> files = _metadata->files();
const QVector<EncryptedFile> files = _metadata->files();
for(EncryptedFile &file : files) {
for(const EncryptedFile &file : files) {
if (file.originalFilename == fileName) {
encryptedFile = file;
found = true;