projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove a not needed old statement
[bertos.git]
/
wizard
/
qvariant_converter_old.py
diff --git
a/wizard/qvariant_converter_old.py
b/wizard/qvariant_converter_old.py
index 5e555b30db5b1dc1a730050fffb9254570870c9e..67ffb084d460126245ae0acbb78df8dac13d85bd 100644
(file)
--- a/
wizard/qvariant_converter_old.py
+++ b/
wizard/qvariant_converter_old.py
@@
-42,13
+42,14
@@
def convertStringList(string_list):
return QVariant(QStringList(result))
def getStringDict(qvariant):
return QVariant(QStringList(result))
def getStringDict(qvariant):
+ a = str(qvariant.toByteArray())
if len(a) == 0:
if len(a) == 0:
- dict_str_
bool
= {}
+ dict_str_
str
= {}
else:
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
):
+def convertStringDict(
dict_str_str
):
a = pickle.dumps(dict_str_str)
return QVariant(QByteArray(a))
a = pickle.dumps(dict_str_str)
return QVariant(QByteArray(a))