[folks] core: Fix comparison of updated local IDs
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] core: Fix comparison of updated local IDs
- Date: Thu, 4 Oct 2012 07:56:32 +0000 (UTC)
commit fe0924d063d03637331fefe39cbb8b024342ed44
Author: Philip Withnall <philip tecnocode co uk>
Date: Thu Oct 4 08:30:25 2012 +0100
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 files changed, 2 insertions(+), 1 deletions(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]