diff --git a/manuskript/ui/views/textEditView.py b/manuskript/ui/views/textEditView.py index 6c0e88ef..e5a2fa50 100644 --- a/manuskript/ui/views/textEditView.py +++ b/manuskript/ui/views/textEditView.py @@ -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()