Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim
Commits
c421f6e1
Commit
c421f6e1
authored
Jun 09, 2021
by
André
Committed by
Philipp Hörist
Jul 24, 2021
Browse files
Fix spell checking
Disable spell checking only if there is no text, so it doesn't crash on correction.
parent
c6a50126
Changes
1
Show whitespace changes
Inline
Side-by-side
gajim/gtk/message_input.py
View file @
c421f6e1
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment