From 7b2714b4e3fe7cdb440e9451254e6e6c07cfa7dd Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 13 Jan 2009 11:43:07 +0000 Subject: [PATCH] Modify the getStringDict function in the compatibility module qvariant_converter_old.py git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2170 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/qvariant_converter_old.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wizard/qvariant_converter_old.py b/wizard/qvariant_converter_old.py index 5e555b30..33bc6887 100644 --- a/wizard/qvariant_converter_old.py +++ b/wizard/qvariant_converter_old.py @@ -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) -- 2.25.1