mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 11:22:28 +12:00
Don't pass none to enchant.dict_exists
This commit is contained in:
parent
b3ba8e813d
commit
0807b14e5c
|
@ -393,7 +393,7 @@ class textEditView(QTextEdit):
|
|||
if enchant and self.spellcheck and not self._dict:
|
||||
if self.currentDict:
|
||||
self._dict = enchant.Dict(self.currentDict)
|
||||
elif enchant.dict_exists(enchant.get_default_language()):
|
||||
elif enchant.get_default_language() and enchant.dict_exists(enchant.get_default_language()):
|
||||
self._dict = enchant.Dict(enchant.get_default_language())
|
||||
else:
|
||||
self.spellcheck = False
|
||||
|
|
Loading…
Reference in a new issue