fix crash when add empty entry in sip address and cancle edit a contact

This commit is contained in:
Danmei Chen 2019-11-26 16:01:34 +01:00
parent 2285414d01
commit 1ff2cbfd7b

View file

@ -258,12 +258,6 @@
(showEmails && section == ContactSections_Email)) {
[self removeEmptyEntry:self.tableView section:section animated:NO];
// the section is empty -> remove titles
if ([[self getSectionData:section] count] == 0) {
[self.tableView
reloadSections:[NSIndexSet indexSetWithIndex:section]
withRowAnimation:animated ? UITableViewRowAnimationFade : UITableViewRowAnimationNone];
}
}
}
_editButton.enabled = YES;