From 80d6ab2e99e92ea5820a296933726f9914a2b1d3 Mon Sep 17 00:00:00 2001 From: Jakub Melka Date: Sat, 12 Oct 2024 15:24:39 +0200 Subject: [PATCH] Issue #161: Allow all certificates to be added to the trusted certificate store --- Pdf4QtLibGui/pdfsidebarwidget.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Pdf4QtLibGui/pdfsidebarwidget.cpp b/Pdf4QtLibGui/pdfsidebarwidget.cpp index 3349cf0..e796001 100644 --- a/Pdf4QtLibGui/pdfsidebarwidget.cpp +++ b/Pdf4QtLibGui/pdfsidebarwidget.cpp @@ -553,12 +553,8 @@ void PDFSidebarWidget::updateSignatures(const std::vectorsetIcon(0, infoIcon); pdf::PDFCertificateInfo::KeyUsageFlags keyUsageFlags = currentCertificateInfo.getKeyUsage(); - if (keyUsageFlags.testFlag(pdf::PDFCertificateInfo::KeyUsageCertSign) || - keyUsageFlags.testFlag(pdf::PDFCertificateInfo::KeyUsageDigitalSignature)) - { - m_certificateInfos.push_back(currentCertificateInfo); - certRoot->setData(0, Qt::UserRole, QVariant(static_cast(m_certificateInfos.size() - 1))); - } + m_certificateInfos.push_back(currentCertificateInfo); + certRoot->setData(0, Qt::UserRole, QVariant(static_cast(m_certificateInfos.size() - 1))); auto addName = [certRoot, ¤tCertificateInfo, &infoIcon](pdf::PDFCertificateInfo::NameEntry nameEntry, QString caption) {