forked from mirrors/linphone-iphone
go back to contactLists when empty contact
This commit is contained in:
parent
17bf94e2b9
commit
fed56fca51
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue