UI/UserInterface.py

changeset 798
5c1786fad576
parent 791
9ec2ac20e54e
child 802
e8882d16384c
--- a/UI/UserInterface.py	Sat Jan 01 18:20:21 2011 +0100
+++ b/UI/UserInterface.py	Sat Jan 01 19:25:31 2011 +0100
@@ -16,6 +16,11 @@
 from PyQt4.Qsci import QSCINTILLA_VERSION_STR
 from PyQt4.QtNetwork import QNetworkProxyFactory, QNetworkAccessManager, \
     QNetworkRequest, QNetworkReply
+try:
+    from PyQt4.QtNetwork import QSslError   # __IGNORE_WARNING__
+    SSL_AVAILABLE = True
+except ImportError:
+    SSL_AVAILABLE = False
 
 from Debugger.DebugUI import DebugUI
 from Debugger.DebugServer import DebugServer
@@ -560,7 +565,8 @@
         self.__networkManager = QNetworkAccessManager(self)
         self.__networkManager.proxyAuthenticationRequired.connect(
             proxyAuthenticationRequired)
-        self.__networkManager.sslErrors.connect(self.__sslErrors)
+        if SSL_AVAILABLE:
+            self.__networkManager.sslErrors.connect(self.__sslErrors)
         self.__replies = []
         
         # attribute for the help window

eric ide

mercurial