Commit d6e3a890 authored by Philipp Hörist's avatar Philipp Hörist

ChatControlBase: Fix race condition when closing with ESC

Fixes #10421
parent 8dfe87e4
Pipeline #7242 passed with stages
in 7 minutes and 22 seconds
......@@ -1052,8 +1052,9 @@ def _on_window_motion_notify(self, *args):
def _on_message_tv_buffer_changed(self, textview, textbuffer):
has_text = self.msg_textview.has_text()
self.parent_win.window.lookup_action(
'send-message-' + self.control_id).set_enabled(has_text)
if self.parent_win is not None:
self.parent_win.window.lookup_action(
'send-message-' + self.control_id).set_enabled(has_text)
if textbuffer.get_char_count() and self.encryption:
app.plugin_manager.extension_point(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment