export manifest Fix (#198)

Co-authored-by: Chris Rizzitello <crizzitello@ics.com>
main
crizzitello 2022-07-18 21:14:06 -04:00 committed by GitHub
parent 5928942399
commit 71a6cf2ddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -141,8 +141,7 @@ porting::EvidenceManifest SystemManifest::copyEvidence(const QString& baseExport
auto item = porting::EvidenceItem(evi.id, m_fileTemplate.arg(relativeEvidenceDir, newName));
auto dstPath = m_fileTemplate.arg(baseExportPath, item.exportPath);
QFile srcFile(evi.path);
srcFile.copy(dstPath);
if (!srcFile.error() != QFileDevice::NoError)
if(!srcFile.copy(dstPath))
Q_EMIT onCopyFileError(evi.path, dstPath, srcFile.errorString());
else
evidenceManifest.entries.append(item);