Fix call logs issue

This commit is contained in:
Yann Diorcet 2012-09-28 14:58:07 +02:00
parent b89cbabf52
commit cb9e977bf3
2 changed files with 6 additions and 5 deletions

View file

@ -115,7 +115,6 @@ static UICompositeViewDescription *compositeDescription = nil;
selector:@selector(update:)
name:kLinphoneAddressBookUpdate
object:nil];
[self update];
}
- (void)viewWillDisappear:(BOOL)animated {
@ -155,11 +154,11 @@ static UICompositeViewDescription *compositeDescription = nil;
- (void)update {
// Don't update if callLog is null
if(callLog==NULL) {
if(callLog == NULL) {
return;
}
LinphoneAddress* addr;
LinphoneAddress* addr = NULL;
if (callLog->dir == LinphoneCallIncoming) {
addr = callLog->from;
} else {

View file

@ -181,8 +181,10 @@ static UICompositeViewDescription *compositeDescription = nil;
- (IBAction)onDeleteClick:(id) event {
linphone_core_clear_call_logs([LinphoneManager getLc]);
[tableController loadData];
[editButton toggle];
[self onEditClick:nil];
if([editButton isSelected]) {
[editButton toggle];
[self onEditClick:nil];
}
}
@end