Skip to content

Commit

Permalink
Show SN,GN,serialNumber if available (open-eid#1061)
Browse files Browse the repository at this point in the history
IB-7350

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored Mar 31, 2022
1 parent 181c617 commit 480ac74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/dialogs/SignatureDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ SignatureDialog::SignatureDialog(const DigiDocSignature &signature, QWidget *par
if(cert.isNull())
return;
addItem(t, title, cert);
addItem(t, title2, CertificateDetails::decodeCN(cert.issuerInfo(QSslCertificate::CommonName)));
addItem(t, title2, cert.issuerInfo(QSslCertificate::CommonName));
};
auto addTime = [this](QTreeWidget *t, const QString &title, const QDateTime &time) {
if(time.isNull())
Expand Down Expand Up @@ -248,7 +248,7 @@ void SignatureDialog::addItem(QTreeWidget *view, const QString &variable, const
{
SslCertificate c(value);
QPushButton *button = itemButton(
CertificateDetails::decodeCN(c.subjectInfo(QSslCertificate::CommonName)), view);
c.toString(c.showCN() ? QStringLiteral("CN") : QStringLiteral("GN,SN,serialNumber")), view);
connect(button, &QPushButton::clicked, this, [=]{ CertificateDetails::showCertificate(c, this); });
addItem(view, variable, button);
}
Expand Down

0 comments on commit 480ac74

Please sign in to comment.