diff options
author | wurstsalat <mailtrash@posteo.de> | 2022-10-03 22:20:26 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2022-10-03 22:20:26 +0300 |
commit | 4f57adce1666a1599b420c02ce87eb431f6971a9 (patch) | |
tree | 073a4ef84708dd81b68b24a5121e67cb5e7e8400 | |
parent | 44b9de35765adff64dc07ede69b18d7bb0e5c551 (diff) |
fix: MessageActionsBox: Don’t fail if no contact is set while updating file actions
-rw-r--r-- | gajim/gtk/message_actions_box.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gajim/gtk/message_actions_box.py b/gajim/gtk/message_actions_box.py index 4cdaa45aa..a91c04adf 100644 --- a/gajim/gtk/message_actions_box.py +++ b/gajim/gtk/message_actions_box.py @@ -447,7 +447,9 @@ class MessageActionsBox(Gtk.Grid, ged.EventHelper): self._ui.sendfile_button.set_tooltip_text(tooltip_text) return - assert self._contact is not None + if self._contact is None: + return + client = app.get_client(self._contact.account) tooltip_text = _('Send File…') |