summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-04-10 17:19:18 +0200
committermathieui <mathieui@mathieui.net>2015-04-10 17:19:18 +0200
commit190c7a4a7b27213a7c1e080b21333557cdf4dee3 (patch)
tree58c9f70602d3db0aea7db3054921e369bd265f21 /src
parent87e16546b9a1d1d21960ee7b7dc0724f151b4995 (diff)
downloadpoezio-190c7a4a7b27213a7c1e080b21333557cdf4dee3.tar.gz
poezio-190c7a4a7b27213a7c1e080b21333557cdf4dee3.tar.bz2
poezio-190c7a4a7b27213a7c1e080b21333557cdf4dee3.tar.xz
poezio-190c7a4a7b27213a7c1e080b21333557cdf4dee3.zip
Save the bookmarks after changing the storage method
also fix a check that would make the handler never trigger…
Diffstat (limited to 'src')
-rw-r--r--src/core/core.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/core.py b/src/core/core.py
index 344193bf..a16f4cde 100644
--- a/src/core/core.py
+++ b/src/core/core.py
@@ -355,9 +355,10 @@ class Core(object):
"""
Called when the use_bookmarks_method option changes
"""
- if 'value' not in ('pep', 'privatexml'):
+ if value not in ('pep', 'privatexml'):
return
self.bookmarks.preferred = value
+ self.bookmarks.save(self.xmpp, core=self)
def on_gaps_config_change(self, option, value):
"""