Helpviewer/SslCertificatesDialog.py

branch
5_3_x
changeset 2764
1d85539ac41a
parent 2364
e90e9235f7d9
child 3163
9f50365a0870
equal deleted inserted replaced
2762:423835fb1204 2764:1d85539ac41a
135 .format(itm.text(0))) 135 .format(itm.text(0)))
136 if res: 136 if res:
137 server = itm.text(1) 137 server = itm.text(1)
138 cert = self.serversCertificatesTree.currentItem().data(0, self.CertRole) 138 cert = self.serversCertificatesTree.currentItem().data(0, self.CertRole)
139 139
140 # delete the selected entry and it's parent entry, if it was the only one 140 # delete the selected entry and its parent entry, if it was the only one
141 parent = itm.parent() 141 parent = itm.parent()
142 parent.takeChild(parent.indexOfChild(itm)) 142 parent.takeChild(parent.indexOfChild(itm))
143 if parent.childCount() == 0: 143 if parent.childCount() == 0:
144 self.serversCertificatesTree.takeTopLevelItem( 144 self.serversCertificatesTree.takeTopLevelItem(
145 self.serversCertificatesTree.indexOfTopLevelItem(parent)) 145 self.serversCertificatesTree.indexOfTopLevelItem(parent))
326 """ will not trust any certificate issued by this CA.</p>""")\ 326 """ will not trust any certificate issued by this CA.</p>""")\
327 .format(itm.text(0))) 327 .format(itm.text(0)))
328 if res: 328 if res:
329 cert = self.caCertificatesTree.currentItem().data(0, self.CertRole) 329 cert = self.caCertificatesTree.currentItem().data(0, self.CertRole)
330 330
331 # delete the selected entry and it's parent entry, if it was the only one 331 # delete the selected entry and its parent entry, if it was the only one
332 parent = itm.parent() 332 parent = itm.parent()
333 parent.takeChild(parent.indexOfChild(itm)) 333 parent.takeChild(parent.indexOfChild(itm))
334 if parent.childCount() == 0: 334 if parent.childCount() == 0:
335 self.caCertificatesTree.takeTopLevelItem( 335 self.caCertificatesTree.takeTopLevelItem(
336 self.caCertificatesTree.indexOfTopLevelItem(parent)) 336 self.caCertificatesTree.indexOfTopLevelItem(parent))

eric ide

mercurial