qt: Handle diagnostic audit log for CMS

* lang/qt/src/threadedjobmixin.cpp(_detail::audit_log_as_html):
Handle CMS audit log.
This commit is contained in:
Andre Heinecke 2019-03-20 09:56:38 +01:00
parent dd21ec997c
commit 47369569e2
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View File

@ -132,7 +132,13 @@ QString _detail::audit_log_as_html(Context *ctx, GpgME::Error &err)
}
if (ctx->protocol() == CMS) {
if ((err = ctx->lastError()) || (err = ctx->getAuditLog(data, CMSAuditLogFlags))) {
if ((err = ctx->lastError())) {
if ((err = ctx->getAuditLog(data, Context::DiagnosticAuditLog))) {
return QString::fromLocal8Bit(err.asString());
}
const QByteArray ba = dp.data();
return markupDiagnostics(stringFromGpgOutput(ba));
} else if ((err = ctx->getAuditLog(data, CMSAuditLogFlags))) {
return QString::fromLocal8Bit(err.asString());
}
const QByteArray ba = dp.data();