diff -r 81c360d47083 -r e6aff7b69165 phonebookengines/cntactions/src/cntemailaction.cpp --- a/phonebookengines/cntactions/src/cntemailaction.cpp Wed Jul 21 11:37:51 2010 +0300 +++ b/phonebookengines/cntactions/src/cntemailaction.cpp Fri Jul 23 12:43:48 2010 +0300 @@ -108,29 +108,6 @@ m_request->send(retValue); emitResult(m_request->lastError(), retValue); } - - // If no detail, pick preferred. - // Todo : Temporary fix. Remove setting preferred when selection popup feature available. - else if (m_detail.isEmpty()) { - QContactDetail detail = m_contact.preferredDetail(m_actionName); - QContactEmailAddress email; - - // If preferred is empty pick first email. - if (detail.isEmpty()) { - email = m_contact.detail(); - } - else { - email = static_cast(detail); - } - - recipients.append(email.emailAddress()); - map.insert(EMAIL_SEND_TO_KEY, recipients); - data.append(map); - - m_request->setArguments(data); - m_request->send(retValue); - emitResult(m_request->lastError(), retValue); - } else { emitResult(GeneralError, retValue); }