core: Fix comparison of updated local IDs
authorPhilip Withnall <philip@tecnocode.co.uk>
Thu, 4 Oct 2012 07:30:25 +0000 (08:30 +0100)
committerPhilip Withnall <philip@tecnocode.co.uk>
Thu, 4 Oct 2012 07:30:25 +0000 (08:30 +0100)
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

index 5e43736..18c9576 100644 (file)
@@ -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;