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:
authorPhilipp Hörist <philipp@hoerist.com>2022-10-05 22:27:40 +0300
committerPhilipp Hörist <philipp@hoerist.com>2022-10-05 23:59:05 +0300
commitadb5f1a2c2cfcbf3399849b32758016d3ae127ac (patch)
tree27244c4d7e9fe05e1d664bcb4c148698ab2e03f3
parent39628b6de0c62758ff23d4c9a1d56ecfc2901631 (diff)
refactor: MessageActionsBox: Check if client is already destroyed
-rw-r--r--gajim/gtk/message_actions_box.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gajim/gtk/message_actions_box.py b/gajim/gtk/message_actions_box.py
index a91c04adf..37c6a43d4 100644
--- a/gajim/gtk/message_actions_box.py
+++ b/gajim/gtk/message_actions_box.py
@@ -230,7 +230,7 @@ class MessageActionsBox(Gtk.Grid, ged.EventHelper):
self._update_message_input_state()
def clear(self) -> None:
- if self._client is not None:
+ if self._client is not None and not self._client.is_destroyed():
self._set_chatstate(False)
self._client.disconnect_all_from_obj(self)