Actually respect cookies-store

This commit is contained in:
Florian Bruhin 2014-06-03 20:30:50 +02:00
parent 35a3cc661e
commit af17746c20
2 changed files with 4 additions and 1 deletions

View File

@ -64,6 +64,9 @@ class CookieJar(QNetworkCookieJar):
def save(self):
"""Save cookies to disk."""
if not config.get('permissions', 'cookies-store'):
# FIXME if this changed to false we should delete the old cookies
return
self.purge_old_cookies()
lines = []
for cookie in self.allCookies():

View File

@ -529,7 +529,7 @@ DATA = OrderedDict([
"Whether to accept cookies."),
('cookies-store',
SettingValue(types.Bool(), 'false'),
SettingValue(types.Bool(), 'true'),
"Whether to store cookies."),
)),