Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
b3e738d2 by wurstsalat at 2025-01-11T14:08:49+01:00
cfix: MessageActionsBox: Catch exception if clipboard cannot be read
Fixes #12170
- - - - -
1 changed file:
- gajim/gtk/message_actions_box.py
Changes:
=====================================
gajim/gtk/message_actions_box.py
=====================================
@@ -844,7 +844,12 @@ def _on_clipboard_read_texture_finished(
clipboard: Gdk.Clipboard,
result: Gio.AsyncResult,
) -> None:
- texture = clipboard.read_texture_finish(result)
+ try:
+ texture = clipboard.read_texture_finish(result)
+ except GLib.Error as e:
+ log.error("Could not read clipboard content: %s", e)
+ return
+
if texture is None:
log.info("No image pasted")
self._ui.input_overlay.set_visible(False)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/b3e738d23eccc4a48e37be2d19dd39e72b5fb772
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/b3e738d23eccc4a48e37be2d19dd39e72b5fb772
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]