112 def on_viewButton_clicked(self): |
112 def on_viewButton_clicked(self): |
113 """ |
113 """ |
114 Private slot to show data of the selected certificate. |
114 Private slot to show data of the selected certificate. |
115 """ |
115 """ |
116 with contextlib.suppress(ImportError): |
116 with contextlib.suppress(ImportError): |
117 from eric7.EricNetwork.EricSslCertificatesInfoDialog import ( # noqa: I101 |
117 from .EricSslCertificatesInfoDialog import EricSslCertificatesInfoDialog |
118 EricSslCertificatesInfoDialog, |
118 # noqa: I101 |
119 ) |
|
120 |
119 |
121 cert = QSslCertificate.fromData( |
120 cert = QSslCertificate.fromData( |
122 self.certificatesTree.selectedItems()[0].data(0, self.CertRole) |
121 self.certificatesTree.selectedItems()[0].data(0, self.CertRole) |
123 ) |
122 ) |
124 dlg = EricSslCertificatesInfoDialog(cert, self) |
123 dlg = EricSslCertificatesInfoDialog(cert, self) |