Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwurstsalat <mailtrash@posteo.de>2022-10-03 22:20:26 +0300
committerwurstsalat <mailtrash@posteo.de>2022-10-03 22:20:26 +0300
commit4f57adce1666a1599b420c02ce87eb431f6971a9 (patch)
tree073a4ef84708dd81b68b24a5121e67cb5e7e8400
parent44b9de35765adff64dc07ede69b18d7bb0e5c551 (diff)
fix: MessageActionsBox: Don’t fail if no contact is set while updating file actions
-rw-r--r--gajim/gtk/message_actions_box.py4
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…')