From fed56fca5131c58e756063f7d5fdbb44e117880a Mon Sep 17 00:00:00 2001 From: REIS Benjamin Date: Wed, 19 Oct 2016 14:50:36 +0200 Subject: [PATCH] go back to contactLists when empty contact --- Classes/ContactDetailsView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/ContactDetailsView.m b/Classes/ContactDetailsView.m index f77d8f81f..4fc1d9b96 100644 --- a/Classes/ContactDetailsView.m +++ b/Classes/ContactDetailsView.m @@ -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 {