From c5ba4275ae68dd558108ce273dafa1bf890259e8 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Fri, 10 Apr 2026 21:54:26 +0200 Subject: 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. --- main/src/ui/conversation_content_view/reactions_widget.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src/ui/conversation_content_view/reactions_widget.vala') 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); } } -- cgit v1.3