[gnome-contacts] Make sure we set original-text on the entry when updating the name



commit bb3a540baf3432472f62cbdbf3e5729d0057eacb
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Sep 1 15:01:41 2011 +0200

    Make sure we set original-text on the entry when updating the name

 src/contacts-contact-pane.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 638447b..33c6cf1 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -1233,6 +1233,7 @@ public class Contacts.ContactPane : Grid {
     e.focus_out_event.connect ( (ev) => {
 	name = e.get_text ();
 	if (name != e.get_data<string?> ("original-text")) {
+	  e.set_data ("original-text", name);
 	  Value v = Value (typeof (string));
 	  v.set_string (name);
 	  set_individual_property.begin (selected_contact,



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