From 03c2c5ea89efca7d7191490079921ef0f4b2ee17 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 24 May 2016 10:10:19 +0530 Subject: [PATCH] Edit Book: Fix import of words into user dictionary not working --- src/calibre/gui2/tweak_book/spell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/spell.py b/src/calibre/gui2/tweak_book/spell.py index 19e93b1e7a..b0ba49b30e 100644 --- a/src/calibre/gui2/tweak_book/spell.py +++ b/src/calibre/gui2/tweak_book/spell.py @@ -360,7 +360,7 @@ class ManageUserDictionaries(Dialog): words = set(filter(None, [x.strip() for x in unicode(w.toPlainText()).splitlines()])) lang = lc[0] words = {(w, lang) for w in words} - self.current_dictionary.words - if dictionaries.add_to_user_dictionary(self.current_dictionary.name, words, None): + if dictionaries.add_to_user_dictionary(self.current_dictionary.name, words, DictionaryLocale(lang, None)): dictionaries.clear_caches() self.show_current_dictionary() self.dictionaries_changed = True