123 @pyqtSlot() |
118 @pyqtSlot() |
124 def on_serversViewButton_clicked(self): |
119 def on_serversViewButton_clicked(self): |
125 """ |
120 """ |
126 Private slot to show data of the selected server certificate. |
121 Private slot to show data of the selected server certificate. |
127 """ |
122 """ |
128 cert = QSslCertificate.fromData( |
123 try: |
129 self.serversCertificatesTree.currentItem().data(0, self.CertRole))[0] |
124 from E5Network.E5SslInfoDialog import E5SslInfoDialog |
130 dlg = E5SslInfoDialog(cert, self) |
125 cert = QSslCertificate.fromData( |
131 dlg.exec_() |
126 self.serversCertificatesTree.currentItem().data(0, self.CertRole))[0] |
|
127 dlg = E5SslInfoDialog(cert, self) |
|
128 dlg.exec_() |
|
129 except ImportError: |
|
130 pass |
132 |
131 |
133 @pyqtSlot() |
132 @pyqtSlot() |
134 def on_serversDeleteButton_clicked(self): |
133 def on_serversDeleteButton_clicked(self): |
135 """ |
134 """ |
136 Private slot to delete the selected server certificate. |
135 Private slot to delete the selected server certificate. |
316 @pyqtSlot() |
315 @pyqtSlot() |
317 def on_caViewButton_clicked(self): |
316 def on_caViewButton_clicked(self): |
318 """ |
317 """ |
319 Private slot to show data of the selected CA certificate. |
318 Private slot to show data of the selected CA certificate. |
320 """ |
319 """ |
321 cert = QSslCertificate.fromData( |
320 try: |
322 self.caCertificatesTree.currentItem().data(0, self.CertRole))[0] |
321 from E5Network.E5SslInfoDialog import E5SslInfoDialog |
323 dlg = E5SslInfoDialog(cert, self) |
322 cert = QSslCertificate.fromData( |
324 dlg.exec_() |
323 self.caCertificatesTree.currentItem().data(0, self.CertRole))[0] |
|
324 dlg = E5SslInfoDialog(cert, self) |
|
325 dlg.exec_() |
|
326 except ImportError: |
|
327 pass |
325 |
328 |
326 @pyqtSlot() |
329 @pyqtSlot() |
327 def on_caDeleteButton_clicked(self): |
330 def on_caDeleteButton_clicked(self): |
328 """ |
331 """ |
329 Private slot to delete the selected CA certificate. |
332 Private slot to delete the selected CA certificate. |