go back to contactLists when empty contact

This commit is contained in:
REIS Benjamin 2016-10-19 14:50:36 +02:00
parent 17bf94e2b9
commit fed56fca51

View file

@ -284,7 +284,7 @@ static UICompositeViewDescription *compositeDescription = nil;
#pragma mark - Action Functions
- (IBAction)onCancelClick:(id)event {
if (_contact.phoneNumbers.count + _contact.sipAddresses.count > 0) {
if (_contact.phoneNumbers.count + _contact.sipAddresses.count > 0 && (_contact.firstName != NULL || _contact.lastName != NULL)) {
[self setEditing:FALSE];
[self resetData];
} else {