--- 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<QContactEmailAddress>();
- }
- else {
- email = static_cast<QContactEmailAddress>(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);
}