Fixed a few issues in the web browser.

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 31 May 2010 15:36:05 +0200
changeset 319
09f456ec6fcf
parent 317
f6b0163a21be
child 322
e7c8fa889856
child 325
dd7377dbd057

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:15:20 2010 +0200
+++ b/E5Network/E5NetworkProxyFactory.py	Mon May 31 15:36:05 2010 +0200
@@ -114,7 +114,9 @@
                             Preferences.getUI("ProxyUser/{0}".format(scheme)))
                         proxyList[0].setPassword(
                             Preferences.getUI("ProxyPassword/{0}".format(scheme)))
-                return proxyList
+                    return proxyList
+                else:
+                    return [QNetworkProxy(QNetworkProxy.NoProxy)]
             else:
                 if Preferences.getUI("UseHttpProxyForAll"):
                     protocol = "Http"
--- a/Helpviewer/HelpWindow.py	Mon May 31 15:15:20 2010 +0200
+++ b/Helpviewer/HelpWindow.py	Mon May 31 15:36:05 2010 +0200
@@ -1445,7 +1445,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