Daniel Brötzmann pushed to branch gtk4 at gajim / gajim
Commits:
44f802cd by wurstsalat at 2024-11-15T21:27:52+01:00
cfix: ChatStack: Make sure primary clipboard content is not None
- - - - -
1 changed file:
- gajim/gtk/chat_stack.py
Changes:
=====================================
gajim/gtk/chat_stack.py
=====================================
@@ -163,7 +163,10 @@ def get_message_input(self) -> MessageInputTextView:
def show_chat(self, account: str, jid: JID) -> None:
# Store (preserve) primary clipboard and restore it after switching
clipboard = self.get_primary_clipboard()
- clipboard.read_text_async(None,
self._on_primary_clipboard_read_text_finished)
+ if clipboard.get_content() is not None:
+ clipboard.read_text_async(
+ None, self._on_primary_clipboard_read_text_finished
+ )
self._last_quoted_id = None
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/44f802cd2a053f167958971bedbe996b1ef592e1
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/44f802cd2a053f167958971bedbe996b1ef592e1
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]