mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 11:22:28 +12:00
Fix crash when right clicking a word in editor and enchant is not installed.
This commit is contained in:
parent
d7203ddacf
commit
9b774d327f
|
@ -470,7 +470,7 @@ class textEditView(QTextEdit):
|
|||
|
||||
# Check if the selected word is misspelled and offer spelling
|
||||
# suggestions if it is.
|
||||
if cursor.hasSelection():
|
||||
if self._dict and cursor.hasSelection():
|
||||
text = str(cursor.selectedText())
|
||||
valid = self._dict.check(text)
|
||||
selectedWord = cursor.selectedText()
|
||||
|
|
Loading…
Reference in a new issue