Helpviewer/SiteInfo/SiteInfoDialog.py

changeset 2078
9f4a45741622
parent 1857
baf039cc2d9a
child 2122
fce5f83cb990
--- a/Helpviewer/SiteInfo/SiteInfoDialog.py	Sun Sep 30 13:27:28 2012 +0200
+++ b/Helpviewer/SiteInfo/SiteInfoDialog.py	Sun Sep 30 17:04:23 2012 +0200
@@ -9,7 +9,7 @@
 
 import os
 
-from PyQt4.QtCore import pyqtSlot, QUrl, Qt, QFile
+from PyQt4.QtCore import pyqtSlot, QUrl, Qt, QFile, qVersion
 from PyQt4.QtGui import QDialog, QTreeWidgetItem, QPixmap, QGraphicsScene, QMenu, \
     QCursor, QApplication, QListWidgetItem
 from PyQt4.QtWebKit import QWebSettings
@@ -88,7 +88,9 @@
         self.encodingLabel.setText(encoding)
         
         # populate the Security info and the Security tab
-        if sslInfo is not None and sslInfo.isValid():
+        if sslInfo is not None and \
+           ((qVersion() >= "5.0.0" and not sslInfo.isBlacklisted()) or \
+            (qVersion() < "5.0.0" and sslInfo.isValid())):
             self.securityLabel.setStyleSheet(SiteInfoDialog.okStyle)
             self.securityLabel.setText('<b>Connection is encrypted.</b>')
             if SSL:

eric ide

mercurial