E5Network/E5SslCertificatesDialog.py

branch
Py2 comp.
changeset 2791
a9577f248f04
parent 2525
8b507a9a2d40
parent 2763
e4794166ad70
child 3057
10516539f238
equal deleted inserted replaced
2790:6686a3326df8 2791:a9577f248f04
147 .format(itm.text(0))) 147 .format(itm.text(0)))
148 if res: 148 if res:
149 server = itm.text(1) 149 server = itm.text(1)
150 cert = self.serversCertificatesTree.currentItem().data(0, self.CertRole) 150 cert = self.serversCertificatesTree.currentItem().data(0, self.CertRole)
151 151
152 # delete the selected entry and it's parent entry, if it was the only one 152 # delete the selected entry and its parent entry, if it was the only one
153 parent = itm.parent() 153 parent = itm.parent()
154 parent.takeChild(parent.indexOfChild(itm)) 154 parent.takeChild(parent.indexOfChild(itm))
155 if parent.childCount() == 0: 155 if parent.childCount() == 0:
156 self.serversCertificatesTree.takeTopLevelItem( 156 self.serversCertificatesTree.takeTopLevelItem(
157 self.serversCertificatesTree.indexOfTopLevelItem(parent)) 157 self.serversCertificatesTree.indexOfTopLevelItem(parent))
342 """ will not trust any certificate issued by this CA.</p>""")\ 342 """ will not trust any certificate issued by this CA.</p>""")\
343 .format(itm.text(0))) 343 .format(itm.text(0)))
344 if res: 344 if res:
345 cert = self.caCertificatesTree.currentItem().data(0, self.CertRole) 345 cert = self.caCertificatesTree.currentItem().data(0, self.CertRole)
346 346
347 # delete the selected entry and it's parent entry, if it was the only one 347 # delete the selected entry and its parent entry, if it was the only one
348 parent = itm.parent() 348 parent = itm.parent()
349 parent.takeChild(parent.indexOfChild(itm)) 349 parent.takeChild(parent.indexOfChild(itm))
350 if parent.childCount() == 0: 350 if parent.childCount() == 0:
351 self.caCertificatesTree.takeTopLevelItem( 351 self.caCertificatesTree.takeTopLevelItem(
352 self.caCertificatesTree.indexOfTopLevelItem(parent)) 352 self.caCertificatesTree.indexOfTopLevelItem(parent))

eric ide

mercurial