[gnome-contacts] Contacts.App: display contact name after done editing



commit 8eaf9defff57b3d2880acb25c444e4e6eced4734
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Sun Aug 18 00:16:51 2013 -0400

    Contacts.App: display contact name after done editing

 src/contacts-app.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index a2836ee..238e0d2 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -291,10 +291,13 @@ public class Contacts.App : Gtk.Application {
       });
 
     window.done_button.clicked.connect (() => {
-       window.right_title = "";
         window.done_button.hide ();
         window.edit_button.show ();
         contacts_pane.set_edit_mode (false);
+
+        if (contacts_pane.contact != null) {
+         window.right_title = contacts_pane.contact.display_name;
+        }
       });
 
     window.show_all ();


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