[folks] Don't synchronise alias between Personas
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Don't synchronise alias between Personas
- Date: Tue, 10 Aug 2010 23:14:48 +0000 (UTC)
commit 9004ea1a98f6deed6fd363a051467cd93fdf9560
Author: Philip Withnall <philip withnall collabora co uk>
Date: Mon Aug 9 17:08:43 2010 +0100
Don't synchronise alias between Personas
When setting a new alias on an Individual, only push it to Personas from
the writeable PersonaStore. This prevents every other Persona's alias from
being unnecessarily overwritten.
folks/individual.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/folks/individual.vala b/folks/individual.vala
index 49bbcc9..09bd864 100644
--- a/folks/individual.vala
+++ b/folks/individual.vala
@@ -91,7 +91,7 @@ public class Folks.Individual : Object,
this._alias = value;
this._personas.foreach ((p) =>
{
- if (p is Alias)
+ if (p is Alias && ((Persona) p).store.is_writeable == true)
((Alias) p).alias = value;
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]