mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-05 04:24:33 +12:00
Add None check to spellcheck context menu
This commit is contained in:
parent
87da52efd4
commit
069a2f2b8d
|
@ -363,7 +363,7 @@ class PySpellcheckerDictionary(BasicDictionary):
|
||||||
|
|
||||||
def getSuggestions(self, word):
|
def getSuggestions(self, word):
|
||||||
candidates = self._dict.candidates(word)
|
candidates = self._dict.candidates(word)
|
||||||
if word in candidates:
|
if candidates is not None and word in candidates:
|
||||||
candidates.remove(word)
|
candidates.remove(word)
|
||||||
return candidates
|
return candidates
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue