Merged remote changes. 5_0_x

Mon, 31 May 2010 19:22:29 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 31 May 2010 19:22:29 +0200
branch
5_0_x
changeset 328
e38eaa05bf97
parent 327
67718697eda1 (current diff)
parent 320
340a978859c6 (diff)
child 329
3d31db27f86e

Merged remote changes.

--- a/E5Network/E5NetworkProxyFactory.py	Mon May 31 19:21:54 2010 +0200
+++ b/E5Network/E5NetworkProxyFactory.py	Mon May 31 19:22:29 2010 +0200
@@ -57,9 +57,12 @@
                                                   url.userName(), url.password())
                             proxyList = [proxy]
                             break
-                proxyList[0].setUser(Preferences.getUI("ProxyUser"))
-                proxyList[0].setPassword(Preferences.getUI("ProxyPassword"))
-                return proxyList
+                if proxyList:
+                    proxyList[0].setUser(Preferences.getUI("ProxyUser"))
+                    proxyList[0].setPassword(Preferences.getUI("ProxyPassword"))
+                    return proxyList
+                else:
+                    return [QNetworkProxy(QNetworkProxy.NoProxy)]
             else:
                 host = Preferences.getUI("ProxyHost")
                 if not host:
--- a/Helpviewer/HelpWindow.py	Mon May 31 19:21:54 2010 +0200
+++ b/Helpviewer/HelpWindow.py	Mon May 31 19:22:29 2010 +0200
@@ -1429,7 +1429,10 @@
         if url.isValid():
             return url
         
-        return QUrl(path)
+        try:
+            return QUrl.fromUserInput(path)
+        except AttributeError:
+            return QUrl(path)
     
     def __setPathComboBackground(self):
         """

eric ide

mercurial