From 32f83a0d1b9706462067b0476fa04c9f844d4081 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 23 Dec 2011 20:44:38 +0200 Subject: [PATCH] Small fix in pyfaGlobalPreferences, proxy autodetection returns None if no proxy are available (from system settings) --- gui/builtinPreferenceViews/pyfaGlobalPreferences.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/builtinPreferenceViews/pyfaGlobalPreferences.py b/gui/builtinPreferenceViews/pyfaGlobalPreferences.py index 2099de9a4..ff5440df2 100644 --- a/gui/builtinPreferenceViews/pyfaGlobalPreferences.py +++ b/gui/builtinPreferenceViews/pyfaGlobalPreferences.py @@ -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()