From f4734ab6915c9e6a9b219a3f4bb09dec6d3c2c2d Mon Sep 17 00:00:00 2001 From: thierry1970 Date: Thu, 10 Jun 2021 14:55:46 +0200 Subject: editor: Fix the loss of birthday date --- src/contacts-editor-property.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/contacts-editor-property.vala b/src/contacts-editor-property.vala index 6f38590..4687fbd 100644 --- a/src/contacts-editor-property.vala +++ b/src/contacts-editor-property.vala @@ -556,16 +556,18 @@ public class Contacts.EditorProperty : Gee.ArrayList { private EditorPropertyRow create_for_birthday (BirthdayDetails? details) { DateTime date; + Gtk.Button button; if (details.birthday == null) { date = new DateTime.now (); + button = new Gtk.Button.with_label (_("Set Birthday")); } else { date = details.birthday; + button = new Gtk.Button.with_label (details.birthday.to_local ().format ("%x")); } var box = new EditorPropertyRow ("birthday"); box.add_base_label (_("Birthday")); - var button = new Gtk.Button.with_label (_("Set Birthday")); box.container.pack_start (button); button.clicked.connect (() => { -- cgit v1.2.1