Skip to content
Permalink
Browse files

Merge PR #3590: Fix Duplicate Certificates In Chain Viewer

  • Loading branch information...
davidebeatrici committed Jan 26, 2019
2 parents 4976c1a + ead94a8 commit 909c13c58deb3e66d9126ddae1b1bd5fac13478d
Showing with 12 additions and 2 deletions.
  1. +12 −2 src/mumble/ViewCert.cpp
@@ -65,8 +65,18 @@ ViewCert::ViewCert(QList<QSslCertificate> cl, QWidget *p) : QDialog(p) {
qlwChain = new QListWidget(qcbChain);
qlwChain->setObjectName(QLatin1String("Chain"));

foreach(QSslCertificate c, qlCerts)
qlwChain->addItem(certificateFriendlyName(c));
// load certs into a set as a hacky fix to #2141
#if QT_VERSION >= 0x050400
QSet<QSslCertificate> qlCertSet;
#else
QList<QSslCertificate> qlCertSet;
#endif
foreach(QSslCertificate c, qlCerts) {
if(!qlCertSet.contains(c)) {
qlwChain->addItem(certificateFriendlyName(c));
qlCertSet << c;
}
}
h->addWidget(qlwChain);

qcbDetails=new QGroupBox(tr("Certificate details"), this);

0 comments on commit 909c13c

Please sign in to comment.
You can’t perform that action at this time.