--- a/emailuis/nmailuiwidgets/src/nmrecipientlineedit.cpp Fri Sep 03 17:52:02 2010 +0300
+++ b/emailuis/nmailuiwidgets/src/nmrecipientlineedit.cpp Wed Sep 15 12:09:55 2010 +0300
@@ -319,3 +319,16 @@
Q_UNUSED(text);
mNeedToGenerateEmailAddressList = true;
}
+
+/*
+ * If recipient is added from Contacts by Contacts, we need to add it to the list.
+ */
+void NmRecipientLineEdit::addContacts(QList<NmAddress *> contacts)
+{
+ foreach (NmAddress *nmContact,contacts) {
+ if (nmContact && nmContact->displayName().length() > 0) {
+ mRecipientsAddedFromContacts.append(*nmContact);
+ mNeedToGenerateEmailAddressList = true;
+ }
+ }
+}