From cba3bff70884286c1e964d31f3091f2bb7a32dd5 Mon Sep 17 00:00:00 2001 From: kousu Date: Sun, 29 Mar 2026 02:27:32 -0400 Subject: Disable JID picker's '-' button on synthetic suggestions. Actually this was already supposed to work but at some point it broke, probably in f44cbe02c17df1f02ad49c63cd784fec0ea02d85 when AddListRow became a child of another widget during the GTK4 port. --- main/src/ui/add_conversation/select_jid_fragment.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/ui/add_conversation/select_jid_fragment.vala b/main/src/ui/add_conversation/select_jid_fragment.vala index e0682e29..cea1ff86 100644 --- a/main/src/ui/add_conversation/select_jid_fragment.vala +++ b/main/src/ui/add_conversation/select_jid_fragment.vala @@ -77,7 +77,7 @@ public class SelectJidFragment : Gtk.Box { private void check_buttons_active() { ListBoxRow? row = list.get_selected_row(); - bool active = row != null && !row.get_type().is_a(typeof(AddListRow)); + bool active = row != null && row.child != null && !row.child.get_type().is_a(typeof(AddListRow)); remove_button.sensitive = active; } -- cgit v1.3