Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
68715d13 by wurstsalat at 2025-04-14T20:46:46+02:00
fix: Message actions box: Fix pressing space to focus input; prevent error with
no contact
Fixes #12267
- - - - -
1 changed file:
- gajim/gtk/message_actions_box.py
Changes:
=====================================
gajim/gtk/message_actions_box.py
=====================================
@@ -738,14 +738,14 @@ def _update_send_file_button_tooltip(self):
self._ui.sendfile_button.set_tooltip_text(tooltip_text)
def _on_buffer_changed(self, _message_input: MessageInputTextView) -> None:
- assert self._contact
+ if self._contact is None:
+ return
has_text = self.msg_textview.has_text
app.window.get_action("send-message").set_enabled(
allow_send_message(has_text, self._contact)
)
- assert self._contact is not None
encryption_name = self._contact.settings.get("encryption")
if has_text and encryption_name:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/68715d13d112014cf52d4acac903c55453d999f6
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/68715d13d112014cf52d4acac903c55453d999f6
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]