129 @pyqtSlot() |
129 @pyqtSlot() |
130 def on_serversViewButton_clicked(self): |
130 def on_serversViewButton_clicked(self): |
131 """ |
131 """ |
132 Private slot to show data of the selected server certificate. |
132 Private slot to show data of the selected server certificate. |
133 """ |
133 """ |
134 try: |
134 with contextlib.suppress(ImportError): |
135 from E5Network.E5SslCertificatesInfoDialog import ( |
135 from E5Network.E5SslCertificatesInfoDialog import ( |
136 E5SslCertificatesInfoDialog |
136 E5SslCertificatesInfoDialog |
137 ) |
137 ) |
138 cert = QSslCertificate.fromData( |
138 cert = QSslCertificate.fromData( |
139 self.serversCertificatesTree.currentItem().data( |
139 self.serversCertificatesTree.currentItem().data( |
140 0, self.CertRole)) |
140 0, self.CertRole)) |
141 dlg = E5SslCertificatesInfoDialog(cert, self) |
141 dlg = E5SslCertificatesInfoDialog(cert, self) |
142 dlg.exec() |
142 dlg.exec() |
143 except ImportError: |
|
144 pass |
|
145 |
143 |
146 @pyqtSlot() |
144 @pyqtSlot() |
147 def on_serversDeleteButton_clicked(self): |
145 def on_serversDeleteButton_clicked(self): |
148 """ |
146 """ |
149 Private slot to delete the selected server certificate. |
147 Private slot to delete the selected server certificate. |
337 @pyqtSlot() |
335 @pyqtSlot() |
338 def on_caViewButton_clicked(self): |
336 def on_caViewButton_clicked(self): |
339 """ |
337 """ |
340 Private slot to show data of the selected CA certificate. |
338 Private slot to show data of the selected CA certificate. |
341 """ |
339 """ |
342 try: |
340 with contextlib.suppress(ImportError): |
343 from E5Network.E5SslCertificatesInfoDialog import ( |
341 from E5Network.E5SslCertificatesInfoDialog import ( |
344 E5SslCertificatesInfoDialog |
342 E5SslCertificatesInfoDialog |
345 ) |
343 ) |
346 cert = QSslCertificate.fromData( |
344 cert = QSslCertificate.fromData( |
347 self.caCertificatesTree.currentItem().data(0, self.CertRole)) |
345 self.caCertificatesTree.currentItem().data(0, self.CertRole)) |
348 dlg = E5SslCertificatesInfoDialog(cert, self) |
346 dlg = E5SslCertificatesInfoDialog(cert, self) |
349 dlg.exec() |
347 dlg.exec() |
350 except ImportError: |
|
351 pass |
|
352 |
348 |
353 @pyqtSlot() |
349 @pyqtSlot() |
354 def on_caDeleteButton_clicked(self): |
350 def on_caDeleteButton_clicked(self): |
355 """ |
351 """ |
356 Private slot to delete the selected CA certificate. |
352 Private slot to delete the selected CA certificate. |