Actually respect cookies-store
This commit is contained in:
parent
35a3cc661e
commit
af17746c20
@ -64,6 +64,9 @@ class CookieJar(QNetworkCookieJar):
|
|||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
"""Save cookies to disk."""
|
"""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()
|
self.purge_old_cookies()
|
||||||
lines = []
|
lines = []
|
||||||
for cookie in self.allCookies():
|
for cookie in self.allCookies():
|
||||||
|
@ -529,7 +529,7 @@ DATA = OrderedDict([
|
|||||||
"Whether to accept cookies."),
|
"Whether to accept cookies."),
|
||||||
|
|
||||||
('cookies-store',
|
('cookies-store',
|
||||||
SettingValue(types.Bool(), 'false'),
|
SettingValue(types.Bool(), 'true'),
|
||||||
"Whether to store cookies."),
|
"Whether to store cookies."),
|
||||||
|
|
||||||
)),
|
)),
|
||||||
|
Loading…
Reference in New Issue
Block a user