diff --git a/ChangeLog b/ChangeLog index 7c6c7bec8..6f7552233 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-22 Francis Lachapelle + + * UI/Contacts/UIxListView.m (-itemHasEmail): new method that + returns YES if the current list item has an email address. + 2010-01-22 Wolfgang Sourdeau * Tools/SOGoToolRestore.m (+initialize): we need to invoke diff --git a/UI/Contacts/UIxListView.m b/UI/Contacts/UIxListView.m index 230db6bd3..36cacca6a 100644 --- a/UI/Contacts/UIxListView.m +++ b/UI/Contacts/UIxListView.m @@ -61,6 +61,11 @@ return [list cardReferences]; } +- (BOOL) itemHasEmail +{ + return [[item email] length] > 0; +} + - (NSString *) itemHref { return [NSString stringWithFormat: @"mailto:%@", diff --git a/UI/Templates/ContactsUI/UIxListView.wox b/UI/Templates/ContactsUI/UIxListView.wox index f47dbcc97..c0a7a8552 100644 --- a/UI/Templates/ContactsUI/UIxListView.wox +++ b/UI/Templates/ContactsUI/UIxListView.wox @@ -20,8 +20,8 @@