aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/add_conversation
diff options
context:
space:
mode:
authorkousu <nick@kousu.ca>2026-03-29 02:27:32 -0400
committerfiaxh <fiaxh@users.noreply.github.com>2026-03-29 12:53:36 +0200
commitcba3bff70884286c1e964d31f3091f2bb7a32dd5 (patch)
tree38f578460d2f5774a3a6c0280f1ee0ead4902f7f /main/src/ui/add_conversation
parenta3aaba8337404e927e2eccc319e00d17b67db45e (diff)
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.
Diffstat (limited to 'main/src/ui/add_conversation')
-rw-r--r--main/src/ui/add_conversation/select_jid_fragment.vala2
1 files changed, 1 insertions, 1 deletions
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;
}