Small fix in pyfaGlobalPreferences, proxy autodetection returns None if no proxy are available (from system settings)

This commit is contained in:
HomeWorld
2011-12-23 20:44:38 +02:00
parent 5d2519ec18
commit 32f83a0d1b

View File

@@ -125,10 +125,10 @@ class PFGlobalPref ( PreferenceView):
proxy = self.proxySettings.autodetect()
if len(proxy) == 0:
txt = "None"
else:
if proxy:
txt = proxy
else:
txt = "None"
self.stPSAutoDetected.SetLabel("Auto-detected: " + txt)
self.stPSAutoDetected.Disable()