mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit Book: Fix import of words into user dictionary not working
This commit is contained in:
parent
d336321ff9
commit
03c2c5ea89
@ -360,7 +360,7 @@ class ManageUserDictionaries(Dialog):
|
|||||||
words = set(filter(None, [x.strip() for x in unicode(w.toPlainText()).splitlines()]))
|
words = set(filter(None, [x.strip() for x in unicode(w.toPlainText()).splitlines()]))
|
||||||
lang = lc[0]
|
lang = lc[0]
|
||||||
words = {(w, lang) for w in words} - self.current_dictionary.words
|
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()
|
dictionaries.clear_caches()
|
||||||
self.show_current_dictionary()
|
self.show_current_dictionary()
|
||||||
self.dictionaries_changed = True
|
self.dictionaries_changed = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user