[gnome-contacts] l18n: fix edit-mode titlebar construct



commit 0b1fa6bf81eefd9e84be82dc55e7ac88ee66a8a2
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Sat Aug 31 00:52:54 2013 -0400

    l18n: fix edit-mode titlebar construct
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=707165

 src/contacts-app.vala |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 3c9c952..37d78bd 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -278,13 +278,14 @@ public class Contacts.App : Gtk.Application {
       });
 
     window.edit_button.clicked.connect (() => {
+       if (contacts_pane.contact == null)
+         return;
+
         if (window.select_button.active)
           window.select_button.set_active (false);
 
-        var name = _("Editing");
-        if (contacts_pane.contact != null) {
-          name += " %s".printf (contacts_pane.contact.display_name);
-        }
+       var name = contacts_pane.contact.display_name;
+        window.right_title = _("Editing %s").printf (name);
 
        window.right_title = name;
         window.edit_button.hide ();


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