mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Refactor to make QSettings more python friendly
This commit is contained in:
parent
e6b649d8a0
commit
d0a847d9fa
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user