forked from mirrors/linphone-iphone
fix crash when adding to quickly a first contact on an empty list on ipad
This commit is contained in:
parent
73fd1837f5
commit
798f6c593c
1 changed files with 2 additions and 2 deletions
|
|
@ -176,7 +176,7 @@ static int ms_strcmpfuz(const char *fuzzy_word, const char *sentence) {
|
|||
// since we refresh the tableview, we must perform this on main thread
|
||||
dispatch_async(dispatch_get_main_queue(), ^(void) {
|
||||
if (IPAD) {
|
||||
if (![self selectFirstRow]) {
|
||||
if (!([self totalNumberOfItems] > 0)) {
|
||||
ContactDetailsView *view = VIEW(ContactDetailsView);
|
||||
[view setContact:nil];
|
||||
}
|
||||
|
|
@ -257,7 +257,7 @@ static int ms_strcmpfuz(const char *fuzzy_word, const char *sentence) {
|
|||
// since we refresh the tableview, we must perform this on main thread
|
||||
dispatch_async(dispatch_get_main_queue(), ^(void) {
|
||||
if (IPAD) {
|
||||
if (![self selectFirstRow]) {
|
||||
if (!([self totalNumberOfItems] > 0)) {
|
||||
ContactDetailsView *view = VIEW(ContactDetailsView);
|
||||
[view setContact:nil];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue