Fixed an issue caused by using an obsolete and removed Qt method. eric7

Mon, 06 Dec 2021 19:03:48 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 06 Dec 2021 19:03:48 +0100
branch
eric7
changeset 8813
a2a54778dcf2
parent 8812
01775e32d80b
child 8814
59bae82bf176

Fixed an issue caused by using an obsolete and removed Qt method.

eric7/EricNetwork/EricSslCertificatesDialog.py file | annotate | diff | comparison | revisions
--- a/eric7/EricNetwork/EricSslCertificatesDialog.py	Sun Dec 05 12:15:18 2021 +0100
+++ b/eric7/EricNetwork/EricSslCertificatesDialog.py	Mon Dec 06 19:03:48 2021 +0100
@@ -14,9 +14,7 @@
 )
 from PyQt6.QtWidgets import QDialog, QTreeWidgetItem
 with contextlib.suppress(ImportError):
-    from PyQt6.QtNetwork import (
-        QSslCertificate, QSslSocket, QSslConfiguration, QSsl
-    )
+    from PyQt6.QtNetwork import QSslCertificate, QSslConfiguration, QSsl
 
 from EricWidgets import EricMessageBox, EricFileDialog
 
@@ -271,7 +269,7 @@
         caList = QSslCertificate.fromData(Globals.toByteArray(
             Preferences.getSettings().value("Help/SystemCertificates")))
         if not caList:
-            caList = QSslSocket.systemCaCertificates()
+            caList = QSslConfiguration.systemCaCertificates()
         return caList
     
     def __populateCaCertificatesTree(self):

eric ide

mercurial