Added a message to the SSL error dialog that was introduced with Qt 5.7.0.

Tue, 04 Oct 2016 18:10:19 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 04 Oct 2016 18:10:19 +0200
changeset 5201
21601e86a3f5
parent 5200
0f0efb52fda6
child 5202
cff7a158250f

Added a message to the SSL error dialog that was introduced with Qt 5.7.0.

WebBrowser/Network/SslErrorExceptionsDialog.py file | annotate | diff | comparison | revisions
--- a/WebBrowser/Network/SslErrorExceptionsDialog.py	Tue Oct 04 18:09:31 2016 +0200
+++ b/WebBrowser/Network/SslErrorExceptionsDialog.py	Tue Oct 04 18:10:19 2016 +0200
@@ -69,6 +69,13 @@
                 self.tr("The certificate claimed DNS names that are in"
                         " violation of name constraints."),
         }
+        try:
+            self.__errorDescriptions[
+                QWebEngineCertificateError.CertificateValidityTooLong] = \
+            self.tr("The certificate has a validity period that is too long.")
+        except AttributeError:
+            # the value was added in Qt 5.7
+            pass
         
         for host, errors in errorsDict.items():
             itm = QTreeWidgetItem(self.errorsTree, [host])

eric ide

mercurial