From 8a4414fdcb9c153e4fabda9bcd1d38b4720760d7 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 11 Oct 2016 17:54:27 +0200 Subject: [PATCH] Add a label for unknown contacts --- src/phone.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/phone.c b/src/phone.c index 5abd7c8..ed119f5 100644 --- a/src/phone.c +++ b/src/phone.c @@ -2720,7 +2720,10 @@ void phone_show_read(Phone * phone, gboolean show, ...) #endif if(phone->re_window == NULL) _show_read_window(phone); - if(name != NULL) + if(name == NULL) + gtk_label_set_text(GTK_LABEL(phone->re_name), + _("Unknown contact")); + else gtk_label_set_text(GTK_LABEL(phone->re_name), name); if(number != NULL) gtk_label_set_text(GTK_LABEL(phone->re_number), number);