diff options
| author | Marvin W <git@larma.de> | 2026-04-10 21:54:26 +0200 |
|---|---|---|
| committer | Marvin W <git@larma.de> | 2026-04-10 21:54:26 +0200 |
| commit | c5ba4275ae68dd558108ce273dafa1bf890259e8 (patch) | |
| tree | c11797edfb7190ae0fb5166cec60881237bcd0bf /main/src/ui/conversation_content_view/reactions_widget.vala | |
| parent | 0baeaa2b8f481f60f8c7eecc856c48a11f211a20 (diff) | |
Early dispose the reaction widget when no longer needed
It previously triggered the leak checker, even though eventually the widget
would be disposed when the corresponding message skeletion got disposed.
Diffstat (limited to 'main/src/ui/conversation_content_view/reactions_widget.vala')
| -rw-r--r-- | main/src/ui/conversation_content_view/reactions_widget.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/conversation_content_view/reactions_widget.vala b/main/src/ui/conversation_content_view/reactions_widget.vala index a148a677..cb756167 100644 --- a/main/src/ui/conversation_content_view/reactions_widget.vala +++ b/main/src/ui/conversation_content_view/reactions_widget.vala @@ -7,7 +7,7 @@ using Xmpp; namespace Dino.Ui.ConversationSummary { public class ReactionsController : Object { - public signal void box_activated(Widget widget); + public signal void box_activated(Widget? widget); private Conversation conversation; private Account account; @@ -94,7 +94,7 @@ public class ReactionsController : Object { } if (reactions.size == 0) { - widget.unparent(); + box_activated(null); this.widget.set(null); } } |
