[folks] IndividualAggregator: check for the writeable store was wrong
- From: Raul Gutierrez Segales <raulgs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] IndividualAggregator: check for the writeable store was wrong
- Date: Fri, 2 Sep 2011 18:13:27 +0000 (UTC)
commit 1f5d9e4ad0fb233de3b468fd1b4098f8c65f4fd6
Author: Raul Gutierrez Segales <rgs collabora co uk>
Date: Fri Sep 2 10:55:24 2011 +0100
IndividualAggregator: check for the writeable store was wrong
We were checking for matching type_id to see if a PersonaStore
was the configured writeable store, instead we should do a
pointer comparison.
folks/individual-aggregator.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/folks/individual-aggregator.vala b/folks/individual-aggregator.vala
index f8f7160..b24ef5b 100644
--- a/folks/individual-aggregator.vala
+++ b/folks/individual-aggregator.vala
@@ -978,7 +978,7 @@ public class Folks.IndividualAggregator : Object
/* Only our writeable_store can be fully trusted. */
var store = (PersonaStore) object;
if (this._writeable_store != null &&
- store.type_id == this._writeable_store.type_id)
+ store == this._writeable_store)
assert (store.trust_level == PersonaStoreTrust.FULL);
else
assert (store.trust_level != PersonaStoreTrust.FULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]