for (const EncryptedFile &file : files) {
if (encryptedFilename == file.encryptedFilename) {
_encryptedInfo = file;
+ _item->_encryptedFileName = _item->_file;
+ _item->_file = _item->_file.section(QLatin1Char('/'), 0, -2) + QLatin1Char('/') + _encryptedInfo.originalFilename;
+
qCDebug(lcPropagateDownloadEncrypted) << "Found matching encrypted metadata for file, starting download";
emit folderStatusEncrypted();
return;
// Let's fool the rest of the logic into thinking this was the actual download
tmpFile.setFileName(_tmpOutput.fileName());
- //TODO: This seems what's breaking the logic.
- // Let's fool the rest of the logic into thinking this is the right name of the DAV file
- _item->_encryptedFileName = _item->_file;
- _item->_file = _item->_file.section(QLatin1Char('/'), 0, -2)
- + QLatin1Char('/') + _encryptedInfo.originalFilename;
-
-
return true;
}