projects
/
platform
/
upstream
/
folks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43d690d
)
core: Fix comparison of updated local IDs
author
Philip Withnall
<philip@tecnocode.co.uk>
Thu, 4 Oct 2012 07:30:25 +0000
(08:30 +0100)
committer
Philip 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
patch
|
blob
|
history
diff --git
a/folks/individual.vala
b/folks/individual.vala
index
5e43736
..
18c9576
100644
(file)
--- 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;