Fix calendar export for CAs

The export checked the F_CHAIN flag, but the export item
used the F_CA flag to indicate CA calendar exports.
This commit is contained in:
Christian Hohnstaedt 2024-04-22 19:10:36 +02:00
parent e3c2c40f1e
commit c7565cf0f1

View File

@ -650,7 +650,7 @@ void db_x509::exportItems(const QModelIndexList &list,
} else if (xport->match_all(F_CAL)) {
QStringList vcal;
foreach(crt, certs) {
vcal += xport->match_all(F_CHAIN) ?
vcal += xport->match_all(F_CA) ?
crt->icsVEVENT_ca() : crt->icsVEVENT();
}
writeVcalendar(file, vcal);