equal
deleted
inserted
replaced
437 Q_UNUSED(result) |
437 Q_UNUSED(result) |
438 |
438 |
439 QList<QContact> matchingContacts = MsgContactHandler::findContactList(mContactNumber); |
439 QList<QContact> matchingContacts = MsgContactHandler::findContactList(mContactNumber); |
440 |
440 |
441 if (!matchingContacts.isEmpty()) { |
441 if (!matchingContacts.isEmpty()) { |
442 setAddress(matchingContacts.at(0).displayLabel()); |
442 QString displayLabel = matchingContacts.at(0).displayLabel(); |
443 |
443 if(!displayLabel.isEmpty()) |
|
444 { |
|
445 setAddress(displayLabel); |
|
446 } |
|
447 else |
|
448 { |
|
449 setAddress(mContactNumber); |
|
450 } |
|
451 |
444 QList<QContactAvatar> avatarDetails = matchingContacts.at(0).details<QContactAvatar> (); |
452 QList<QContactAvatar> avatarDetails = matchingContacts.at(0).details<QContactAvatar> (); |
445 |
453 |
446 if (!avatarDetails.isEmpty()) { |
454 if (!avatarDetails.isEmpty()) { |
447 mThumbnailManager->getThumbnail(avatarDetails.at(0).imageUrl().toString()); |
455 mThumbnailManager->getThumbnail(avatarDetails.at(0).imageUrl().toString()); |
448 } |
456 } |