Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.

Fri, 30 Jul 2010 19:06:52 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 30 Jul 2010 19:06:52 +0200
changeset 436
fb832fd53831
parent 435
06ddd1d925e0
child 437
6a62ad60fa99

Fixed a bug in Preferences which might result in an empty list of urls to retrieve version infos from.

Preferences/__init__.py file | annotate | diff | comparison | revisions
--- a/Preferences/__init__.py	Fri Jul 30 18:26:19 2010 +0200
+++ b/Preferences/__init__.py	Fri Jul 30 19:06:52 2010 +0200
@@ -1164,7 +1164,11 @@
         else:
             return prefClass.uiDefaults["ToolbarManagerState"]
     elif key in ["VersionsUrls5"]:
-        return toList(prefClass.settings.value("UI/" + key, prefClass.uiDefaults[key]))
+        urls = toList(prefClass.settings.value("UI/" + key, prefClass.uiDefaults[key]))
+        if len(urls) == 0:
+            return prefClass.uiDefaults[key]
+        else:
+            return urls
     else:
         return prefClass.settings.value("UI/" + key, prefClass.uiDefaults[key])
     

eric ide

mercurial