Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
79e7f12d by wurstsalat at 2024-06-16T14:01:01+02:00
fix: ChatActionProcessor: Make handling selected action more robust
Fixes #11871
- - - - -
1 changed file:
- gajim/gtk/chat_action_processor.py
Changes:
=====================================
gajim/gtk/chat_action_processor.py
=====================================
@@ -124,6 +124,10 @@ def _get_text(self) -> str:
return text_buffer.get_text(start, end, True)
def _replace_text(self, selected_action: str) -> None:
+ if not selected_action:
+ # selected_action may be an empty string under certain conditions
+ return
+
assert self._start_mark is not None
text_buffer = self._message_input.get_buffer()
start_iter = text_buffer.get_iter_at_mark(self._start_mark)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/79e7f12dfd44744ee52727956331694ab92f8b47
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/79e7f12dfd44744ee52727956331694ab92f8b47
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]