--- a/E5Network/E5SslInfoWidget.py Sat May 13 13:46:05 2017 +0200 +++ b/E5Network/E5SslInfoWidget.py Sat May 13 16:32:54 2017 +0200 @@ -9,12 +9,13 @@ from __future__ import unicode_literals -from PyQt5.QtCore import qVersion, Qt, QUrl, QPoint +from PyQt5.QtCore import Qt, QUrl, QPoint from PyQt5.QtWidgets import QMenu, QGridLayout, QLabel, QSizePolicy from PyQt5.QtNetwork import QSsl, QSslConfiguration, QSslCertificate import UI.PixmapCache import Utilities +from Globals import qVersionTuple class E5SslInfoWidget(QMenu): @@ -68,12 +69,12 @@ "Warning: this site is NOT carrying a certificate.")) imageLabel.setPixmap(UI.PixmapCache.getPixmap("securityLow32.png")) else: - if qVersion() >= "5.0.0": + if qVersionTuple() >= (5, 0, 0): valid = not cert.isBlacklisted() else: valid = cert.isValid() if valid: - if qVersion() >= "5.0.0": + if qVersionTuple() >= (5, 0, 0): txt = ", ".join( cert.issuerInfo(QSslCertificate.CommonName)) else: @@ -151,7 +152,7 @@ sslVersion = self.tr("unknown") imageLabel.setPixmap( UI.PixmapCache.getPixmap("securityLow32.png")) - if qVersion() >= "5.0.0": + if qVersionTuple() >= (5, 0, 0): if proto == QSsl.TlsV1_0: sslVersion = "TLS 1.0" imageLabel.setPixmap(