mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-26 03:25:21 +01:00
Refactor to make QSettings more python friendly
This commit is contained in:
parent
e6b649d8a0
commit
d0a847d9fa
1 changed files with 1 additions and 1 deletions
|
|
@ -470,7 +470,7 @@ def get(self, key, default=None):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue