From 1f5d9e4ad0fb233de3b468fd1b4098f8c65f4fd6 Mon Sep 17 00:00:00 2001 From: Raul Gutierrez Segales Date: Fri, 2 Sep 2011 10:55:24 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4