From 190c7a4a7b27213a7c1e080b21333557cdf4dee3 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 10 Apr 2015 17:19:18 +0200 Subject: Save the bookmarks after changing the storage method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit also fix a check that would make the handler never trigger… --- src/core/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): """ -- cgit v1.2.3