Fixed a bug in the code converting a QSettings value to a list.

Thu, 31 Dec 2009 11:40:50 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 31 Dec 2009 11:40:50 +0000
changeset 10
529717676149
parent 9
911a9f7aef1e
child 11
b0996e4a289e

Fixed a bug in the code converting a QSettings value to a list.

Preferences/__init__.py file | annotate | diff | comparison | revisions
diff -r 911a9f7aef1e -r 529717676149 Preferences/__init__.py
--- a/Preferences/__init__.py	Wed Dec 30 17:06:30 2009 +0000
+++ b/Preferences/__init__.py	Thu Dec 31 11:40:50 2009 +0000
@@ -2039,6 +2039,8 @@
     """
     if value is None:
         return []
+    elif type(value) != type([]):
+        return [value]
     else:
         return value
     

eric ide

mercurial