Preferences: corrected the handling of the FTP proxy type.

Thu, 20 May 2021 18:17:29 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 20 May 2021 18:17:29 +0200
changeset 8329
c823968b9602
parent 8328
e22ce9001905
child 8349
b43cf23955aa

Preferences: corrected the handling of the FTP proxy type.

eric6/Preferences/__init__.py file | annotate | diff | comparison | revisions
diff -r e22ce9001905 -r c823968b9602 eric6/Preferences/__init__.py
--- a/eric6/Preferences/__init__.py	Thu May 20 18:08:02 2021 +0200
+++ b/eric6/Preferences/__init__.py	Thu May 20 18:17:29 2021 +0200
@@ -1941,7 +1941,7 @@
             "UI/" + key, prefClass.uiDefaults[key]))
     elif key in ["ProxyType/Ftp", ]:
         return E5FtpProxyType(int(prefClass.settings.value(
-            "UI/" + key, prefClass.uiDefaults[key])))
+            "UI/" + key, prefClass.uiDefaults[key].value)))
     elif key in ["ProxyPassword/Http", "ProxyPassword/Https",
                  "ProxyPassword/Ftp", ]:
         from Utilities.crypto import pwConvert

eric ide

mercurial