Fixed a few issues in the web browser. 5_0_x

Mon, 31 May 2010 15:36:45 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 31 May 2010 15:36:45 +0200
branch
5_0_x
changeset 320
340a978859c6
parent 318
e513e6d31858
child 324
b0f65938f873
child 328
e38eaa05bf97

Fixed a few issues in the web browser.

E5Network/E5NetworkProxyFactory.py file | annotate | diff | comparison | revisions
Helpviewer/HelpWindow.py file | annotate | diff | comparison | revisions
--- a/E5Network/E5NetworkProxyFactory.py	Mon May 31 15:16:22 2010 +0200
+++ b/E5Network/E5NetworkProxyFactory.py	Mon May 31 15:36:45 2010 +0200
@@ -60,7 +60,9 @@
                 if proxyList:
                     proxyList[0].setUser(Preferences.getUI("ProxyUser"))
                     proxyList[0].setPassword(Preferences.getUI("ProxyPassword"))
-                return proxyList
+                    return proxyList
+                else:
+                    return [QNetworkProxy(QNetworkProxy.NoProxy)]
             else:
                 host = Preferences.getUI("ProxyHost")
                 if not host:
--- a/Helpviewer/HelpWindow.py	Mon May 31 15:16:22 2010 +0200
+++ b/Helpviewer/HelpWindow.py	Mon May 31 15:36:45 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