Refactor to make QSettings more python friendly

This commit is contained in:
Kovid Goyal 2008-03-19 03:41:51 +00:00
parent e6b649d8a0
commit d0a847d9fa

View File

@ -470,7 +470,7 @@ class Settings(QSettings):
key = str(key)
if not self.contains(key):
return default
val = str(self.value(key, QVariant()).toString())
val = str(self.value(key, QVariant()).toByteArray())
if not val:
return None
return cPickle.loads(val)