messagingapp/msgui/unifiedviewer/src/univieweraddresswidget.cpp
changeset 44 36f374c67aa8
parent 34 84197e66a4bd
child 47 5b14749788d7
child 52 12db4185673b
equal deleted inserted replaced
43:35b64624a9e7 44:36f374c67aa8
   444         int contactId = MsgContactHandler::resolveContactDisplayName(
   444         int contactId = MsgContactHandler::resolveContactDisplayName(
   445                 data,
   445                 data,
   446                 QContactPhoneNumber::DefinitionName,
   446                 QContactPhoneNumber::DefinitionName,
   447                 QContactPhoneNumber::FieldNumber);
   447                 QContactPhoneNumber::FieldNumber);
   448 
   448 
       
   449         // if contact is unresolved on phone number field
       
   450         // then, try resolving it on email address field
       
   451         if(contactId <= 0)
       
   452         {
       
   453             contactId = MsgContactHandler::resolveContactDisplayName(
       
   454                 data,
       
   455                 QContactEmailAddress::DefinitionName,
       
   456                 QContactEmailAddress::FieldEmailAddress);
       
   457         }
       
   458 
   449         if(contactId > 0)
   459         if(contactId > 0)
   450         {
   460         {
   451             //open contact card
   461             //open contact card
   452             operation = QString("open(int)");
   462             operation = QString("open(int)");
   453             args << contactId;
   463             args << contactId;