Modify the getStringDict function in the compatibility module qvariant_converter_old.py
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 13 Jan 2009 11:43:07 +0000 (11:43 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 13 Jan 2009 11:43:07 +0000 (11:43 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2170 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/qvariant_converter_old.py

index 5e555b30db5b1dc1a730050fffb9254570870c9e..33bc6887cfa2ab3e2f0286af11f9bfe8e1eb1237 100644 (file)
@@ -42,11 +42,12 @@ def convertStringList(string_list):
     return QVariant(QStringList(result))
 
 def getStringDict(qvariant):
+    a = str(qvariant.toByteArray())
     if len(a) == 0:
-        dict_str_bool = {}
+        dict_str_str = {}
     else:
-        dict_str_bool = pickle.loads(a)
-    return dict_str_bool
+        dict_str_str = pickle.loads(a)
+    return dict_str_str
 
 def convertStringDict(string_dict):
     a = pickle.dumps(dict_str_str)