mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-14 08:54:34 +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
|
# Check if the selected word is misspelled and offer spelling
|
||||||
# suggestions if it is.
|
# suggestions if it is.
|
||||||
if cursor.hasSelection():
|
if self._dict and cursor.hasSelection():
|
||||||
text = str(cursor.selectedText())
|
text = str(cursor.selectedText())
|
||||||
valid = self._dict.check(text)
|
valid = self._dict.check(text)
|
||||||
selectedWord = cursor.selectedText()
|
selectedWord = cursor.selectedText()
|
||||||
|
|
Loading…
Reference in a new issue