Little enhancement to the network proxy factory.

Mon, 09 Jul 2012 18:54:06 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 09 Jul 2012 18:54:06 +0200
changeset 1936
536b88d73d53
parent 1935
df157512654c
child 1939
eadb2328d7d4

Little enhancement to the network proxy factory.

E5Network/E5NetworkProxyFactory.py file | annotate | diff | comparison | revisions
--- a/E5Network/E5NetworkProxyFactory.py	Mon Jul 09 18:53:26 2012 +0200
+++ b/E5Network/E5NetworkProxyFactory.py	Mon Jul 09 18:54:06 2012 +0200
@@ -52,6 +52,7 @@
         .format(Qt.escape(proxy.hostName()))
     
     dlg = AuthenticationDialog(info, proxy.user(), True)
+    dlg.setData(proxy.user(), proxy.password())
     if dlg.exec_() == QDialog.Accepted:
         username, password = dlg.getData()
         auth.setUser(username)
@@ -61,8 +62,8 @@
             if scheme and scheme != "NoProxy":
                 Preferences.setUI("ProxyUser/{0}".format(scheme), username)
                 Preferences.setUI("ProxyPassword/{0}".format(scheme), password)
-        proxy.setUser(username)
-        proxy.setPassword(password)
+            proxy.setUser(username)
+            proxy.setPassword(password)
 
 
 class E5NetworkProxyFactory(QNetworkProxyFactory):

eric ide

mercurial