[folks] Fall back to using a display ID if no Personas have an alias
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Fall back to using a display ID if no Personas have an alias
- Date: Thu, 26 Aug 2010 21:09:42 +0000 (UTC)
commit b82218b4c387d83b87b882aace8c79f84670b235
Author: Philip Withnall <philip withnall collabora co uk>
Date: Wed Aug 25 16:01:11 2010 +0100
Fall back to using a display ID if no Personas have an alias
This is prettier than falling back to a UID. Closes: bgo#626410
folks/individual.vala | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/folks/individual.vala b/folks/individual.vala
index 9ef912e..b5d7099 100644
--- a/folks/individual.vala
+++ b/folks/individual.vala
@@ -510,11 +510,12 @@ public class Folks.Individual : Object,
if (alias == null)
{
- /* We have to pick a UID, since none of the personas have an alias
- * available. Pick the UID from the first persona in the list. */
- alias = this._persona_list.data.uid;
- debug ("No aliases available for individual; using UID instead: %s",
- alias);
+ /* We have to pick a display ID, since none of the personas have an
+ * alias available. Pick the display ID from the first persona in the
+ * list. */
+ alias = this._persona_list.data.display_id;
+ debug ("No aliases available for individual; using display ID " +
+ "instead: %s", alias);
}
/* only notify if the value has changed */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]