[gnome-contacts] Update editing_persona when switching persona



commit 2eaf2f941e1e75c61492898bd0a77286766f1639
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Aug 24 10:40:55 2011 +0200

    Update editing_persona when switching persona

 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 4e00011..a39b793 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -514,6 +514,7 @@ public class Contacts.ContactPane : EventBox {
   }
 
   private void update_edit_details (ContactFrame image_frame, Persona persona, bool new_contact) {
+    editing_persona = persona;
     layout.reset (false);
     image_frame.set_image (persona as AvatarDetails);
     image_frame.set_text (Contact.format_persona_store_name (persona.store), LABEL_HEIGHT);
@@ -806,7 +807,6 @@ public class Contacts.ContactPane : EventBox {
   }
 
   private void display_edit (Contact contact, Persona persona, bool new_contact = false) {
-    editing_persona = persona;
     set_display_mode (DisplayMode.EDIT);
 
     var image_frame = new ContactFrame (PROFILE_SIZE);



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