diff options
-rw-r--r-- | src/contacts-accounts-list.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/contacts-accounts-list.vala b/src/contacts-accounts-list.vala index db04cc9..0990f30 100644 --- a/src/contacts-accounts-list.vala +++ b/src/contacts-accounts-list.vala @@ -49,7 +49,9 @@ public class Contacts.AccountsList : Adw.PreferencesGroup { on_model_items_changed (model, 0, 0, model.get_n_items ()); // Setup the selection model - this.selection = new Gtk.SingleSelection (model); + this.selection = new Gtk.SingleSelection (null); + this.selection.autoselect = false; + this.selection.model = model; // Update the row when the selection model changes this.selection.selection_changed.connect ((sel, pos, n_items) => { |