Tue, 04 Oct 2016 18:10:19 +0200
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])