[gnome-contacts] Fix ignoring of keyfile personas



commit 5106f9c1c485934fdc86e65be65363179626e8e4
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Aug 25 09:32:29 2011 +0200

    Fix ignoring of keyfile personas

 src/contacts-contact-pane.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 3b3361b..f98ec90 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -886,13 +886,13 @@ public class Contacts.ContactPane : EventBox {
 
     var persona_list = new ArrayList<Persona>();
     int i = 0;
+    persona_list.add_all (contact.individual.personas);
     while (i < persona_list.size) {
       if (persona_list[i].store.type_id == "key-file")
 	persona_list.remove_at (i);
       else
 	i++;
     }
-    persona_list.add_all (contact.individual.personas);
     var fake_persona = FakePersona.maybe_create_for (contact);
     if (fake_persona != null)
       persona_list.add (fake_persona);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]