From fe0924d063d03637331fefe39cbb8b024342ed44 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 4 Oct 2012 08:30:25 +0100 Subject: [PATCH] core: Fix comparison of updated local IDs We should be comparing a set of strings, not a set of AbstractFieldDetails. This fixes a crash in the link-personas-via-local-ids Tracker test. --- folks/individual.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/folks/individual.vala b/folks/individual.vala index 5e43736..18c9576 100644 --- a/folks/individual.vala +++ b/folks/individual.vala @@ -2272,7 +2272,8 @@ public class Folks.Individual : Object, } } - if (!Utils.set_afd_equal (new_local_ids, this._local_ids)) + if (new_local_ids.size != this._local_ids.size || + !new_local_ids.contains_all (this._local_ids)) { this._local_ids = new_local_ids; this._local_ids_ro = new_local_ids.read_only_view; -- 2.7.4