Verified Commit b395ca61 authored by André's avatar André
Browse files

Fix spell checking

Disable spell checking only if there is no text,
so it doesn't crash on correction.
parent 303f36b9
...@@ -114,9 +114,10 @@ def _on_focus_in(self, _widget, _event): ...@@ -114,9 +114,10 @@ def _on_focus_in(self, _widget, _event):
return False return False
def _on_focus_out(self, _widget, _event): def _on_focus_out(self, _widget, _event):
self.toggle_speller(False)
scrolled = self.get_parent() scrolled = self.get_parent()
scrolled.get_style_context().remove_class('message-input-focus') scrolled.get_style_context().remove_class('message-input-focus')
if not self.has_text():
self.toggle_speller(False)
return False return False
def insert_text(self, text): def insert_text(self, text):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment