Add a label for unknown contacts

This commit is contained in:
Pierre Pronchery 2016-10-11 17:54:27 +02:00
parent 99bc26149b
commit 8a4414fdcb

View File

@ -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);