From 9b774d327f8ef83c729f875667a074988b366f8d Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Sun, 10 Feb 2019 14:54:36 -0500 Subject: [PATCH] Fix crash when right clicking a word in editor and enchant is not installed. --- manuskript/ui/views/textEditView.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()