diff options
author | Erick Pérez Castellanos <erick.red@gmail.com> | 2013-03-30 12:25:25 -0400 |
---|---|---|
committer | Erick Pérez Castellanos <erick.red@gmail.com> | 2013-04-11 11:25:19 -0400 |
commit | 08187b18732b0931adba72d138f0b608bede4451 (patch) | |
tree | 6ba6e7f3ef23562c82c7e0a1edd78b3bb9f89b69 /src/contacts-contact-editor.vala | |
parent | c5cda5be375b5571d504cbe849f5f2b86d94455f (diff) | |
download | gnome-contacts-08187b18732b0931adba72d138f0b608bede4451.tar.gz |
Set Contact birthday with initial value.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=696674
Diffstat (limited to 'src/contacts-contact-editor.vala')
-rw-r--r-- | src/contacts-contact-editor.vala | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/contacts-contact-editor.vala b/src/contacts-contact-editor.vala index 767c843..d80f028 100644 --- a/src/contacts-contact-editor.vala +++ b/src/contacts-contact-editor.vala @@ -553,13 +553,7 @@ public class Contacts.ContactEditor : Grid { } } if (! rows.is_empty) { - if (writable_personas[p].has_key (prop_name)) { - foreach (var entry in rows.entries) { - writable_personas[p][prop_name].rows.set (entry.key, entry.value); - } - } else { - writable_personas[p].set (prop_name, { false, rows }); - } + writable_personas[p].set (prop_name, { add_empty, rows }); } break; case "notes": @@ -699,13 +693,6 @@ public class Contacts.ContactEditor : Grid { } var rw_props = Contact.sort_persona_properties (p.writeable_properties); - /* FIXME: remove debug code */ - string pps = ""; - foreach (var pw in rw_props) { - pps += " %s;".printf (pw); - } - debug ("%s => rw_props: %s", p.uid, pps); - if (rw_props.length != 0) { writable_personas.set (p, new HashMap<string, Field?> ()); foreach (var prop in rw_props) { @@ -742,11 +729,6 @@ public class Contacts.ContactEditor : Grid { foreach (var entry in writable_personas.entries) { foreach (var field_entry in entry.value.entries) { if (field_entry.value.changed && ! (field_entry.key in props_set)) { - string rows = ""; - foreach (var index in field_entry.value.rows.keys) { - rows += "%d ".printf (index); - } - PropertyData p = PropertyData (); p.persona = entry.key; |