зеркало из https://github.com/nextcloud/desktop.git
SSLButton: Fix a crash
Made with danimo. Attempt to fix a crash seen on breakpad reports. (cc06b990-0c10-40eb-bcec-4d3902150320)
This commit is contained in:
Родитель
c7eb85ef78
Коммит
9c05150c12
|
@ -190,6 +190,12 @@ void SslButton::updateAccountState(AccountState *accountState)
|
|||
setToolTip(tr("This connection is encrypted using %1 bit %2.\n").arg(cipher.usedBits()).arg(cipher.name()));
|
||||
QMenu *menu = new QMenu(this);
|
||||
QList<QSslCertificate> chain = account->sslConfiguration().peerCertificateChain();
|
||||
|
||||
if (chain.isEmpty()) {
|
||||
qWarning() << "empty certificate chain";
|
||||
return;
|
||||
}
|
||||
|
||||
menu->addAction(tr("Certificate information:"))->setEnabled(false);
|
||||
|
||||
QList<QSslCertificate> tmpChain;
|
||||
|
|
Загрузка…
Ссылка в новой задаче