[gnome-contacts] Add some empty fields to empty fake persona



commit c00e377aec5197b6207142a33e94accf044f62f5
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Aug 26 10:22:06 2011 +0200

    Add some empty fields to empty fake persona

 src/contacts-contact-pane.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index b16d399..cc910f2 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -889,7 +889,7 @@ public class Contacts.ContactPane : EventBox {
 
 	button.toggled.connect ( (a_button) => {
 	    if (a_button.get_active ())
-	      update_edit_details (p, false);
+	      update_edit_details (p, p is FakePersona);
 	  });
       }
     }
@@ -951,7 +951,7 @@ public class Contacts.ContactPane : EventBox {
     edit_persona_grid.set_vexpand (true);
 
     persona = update_persona_buttons (contact, persona);
-    update_edit_details (persona, new_contact);
+    update_edit_details (persona, new_contact || persona is FakePersona);
 
     g.attach (edit_persona_grid,  0, 3, 1, 1);
     card_grid.show_all ();



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