--- a/Helpviewer/SiteInfo/SiteInfoDialog.py Sat May 13 13:46:05 2017 +0200 +++ b/Helpviewer/SiteInfo/SiteInfoDialog.py Sat May 13 16:32:54 2017 +0200 @@ -11,7 +11,7 @@ import os -from PyQt5.QtCore import pyqtSlot, QUrl, Qt, QFile, qVersion +from PyQt5.QtCore import pyqtSlot, QUrl, Qt, QFile from PyQt5.QtGui import QPixmap, QCursor, QPainter, QColor, QBrush from PyQt5.QtWidgets import QDialog, QTreeWidgetItem, QGraphicsScene, QMenu, \ QApplication, QListWidgetItem @@ -29,6 +29,7 @@ from ..Download.DownloadUtilities import dataString import UI.PixmapCache +from Globals import qVersionTuple class SiteInfoDialog(QDialog, Ui_SiteInfoDialog): @@ -108,8 +109,9 @@ # populate the Security info and the Security tab if sslInfo and \ - ((qVersion() >= "5.0.0" and not sslInfo[0].isBlacklisted()) or - (qVersion() < "5.0.0" and sslInfo[0].isValid())): + ((qVersionTuple() >= (5, 0, 0) and + not sslInfo[0].isBlacklisted()) or + (qVersionTuple() < (5, 0, 0) and sslInfo[0].isValid())): self.securityLabel.setStyleSheet(SiteInfoDialog.okStyle) self.securityLabel.setText('<b>Connection is encrypted.</b>') if SSL: