Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
b395ca61 by André Apitzsch at 2021-06-10T19:59:55+02:00
Fix spell checking

Disable spell checking only if there is no text,
so it doesn't crash on correction.

- - - - -


1 changed file:

- gajim/gtk/message_input.py


Changes:

=====================================
gajim/gtk/message_input.py
=====================================
@@ -114,9 +114,10 @@ def _on_focus_in(self, _widget, _event):
         return False
 
     def _on_focus_out(self, _widget, _event):
-        self.toggle_speller(False)
         scrolled = self.get_parent()
         scrolled.get_style_context().remove_class('message-input-focus')
+        if not self.has_text():
+            self.toggle_speller(False)
         return False
 
     def insert_text(self, text):



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/b395ca61083f3dc6e02237c86cc3187bbee16832

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/b395ca61083f3dc6e02237c86cc3187bbee16832
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to