diff options
| author | kousu <nick@kousu.ca> | 2026-03-29 02:27:32 -0400 |
|---|---|---|
| committer | fiaxh <fiaxh@users.noreply.github.com> | 2026-03-29 12:53:36 +0200 |
| commit | cba3bff70884286c1e964d31f3091f2bb7a32dd5 (patch) | |
| tree | 38f578460d2f5774a3a6c0280f1ee0ead4902f7f /main | |
| parent | a3aaba8337404e927e2eccc319e00d17b67db45e (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')
| -rw-r--r-- | main/src/ui/add_conversation/select_jid_fragment.vala | 2 |
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; } |
