mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 17:29:20 +00:00
Contact: fix crash when trying to add a contact from history
This commit is contained in:
parent
64766ce2e0
commit
10e3c16613
2 changed files with 2 additions and 7 deletions
|
|
@ -230,7 +230,7 @@ static void sync_address_book(ABAddressBookRef addressBook, CFDictionaryRef info
|
|||
// Go to Contact details view
|
||||
ContactDetailsView *view = VIEW(ContactDetailsView);
|
||||
[PhoneMainView.instance changeCurrentView:view.compositeViewDescription];
|
||||
if ([ContactSelection getSelectionMode] != ContactSelectionModeEdit) {
|
||||
if (([ContactSelection getSelectionMode] != ContactSelectionModeEdit) || !([ContactSelection getAddAddress])) {
|
||||
[view setContact:lPerson];
|
||||
} else {
|
||||
[view editContact:lPerson address:[ContactSelection getAddAddress]];
|
||||
|
|
|
|||
|
|
@ -37,12 +37,7 @@ static NSString *sNameOrEmailFilter;
|
|||
}
|
||||
|
||||
+ (void)setAddAddress:(NSString *)address {
|
||||
if (sAddAddress != nil) {
|
||||
sAddAddress = nil;
|
||||
}
|
||||
if (address != nil) {
|
||||
sAddAddress = address;
|
||||
}
|
||||
sAddAddress = address;
|
||||
}
|
||||
|
||||
+ (NSString *)getAddAddress {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue