mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
Do not detach encrypted files vector
This commit is contained in:
parent
3eb3535d0f
commit
3e05bd1da0
1 changed files with 2 additions and 2 deletions
|
@ -131,9 +131,9 @@ void PropagateUploadEncrypted::slotFolderEncryptedMetadataReceived(const QJsonDo
|
||||||
// Find existing metadata for this file
|
// Find existing metadata for this file
|
||||||
bool found = false;
|
bool found = false;
|
||||||
EncryptedFile encryptedFile;
|
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) {
|
if (file.originalFilename == fileName) {
|
||||||
encryptedFile = file;
|
encryptedFile = file;
|
||||||
found = true;
|
found = true;
|
||||||
|
|
Loading…
Reference in a new issue