Changeset View
Changeset View
Standalone View
Standalone View
src/todo/todomodel.cpp
Show First 20 Lines • Show All 774 Lines • ▼ Show 20 Line(s) | 774 | destTodo->addAttachment(KCalCore::Attachment::Ptr(new KCalCore::Attachment( | |||
---|---|---|---|---|---|
775 | text))); | 775 | text))); | ||
776 | } else { | 776 | } else { | ||
777 | QStringList emails = KEmailAddress::splitAddressList(text); | 777 | QStringList emails = KEmailAddress::splitAddressList(text); | ||
778 | for (QStringList::ConstIterator it = emails.constBegin(); | 778 | for (QStringList::ConstIterator it = emails.constBegin(); | ||
779 | it != emails.constEnd(); ++it) { | 779 | it != emails.constEnd(); ++it) { | ||
780 | QString name, email, comment; | 780 | QString name, email, comment; | ||
781 | if (KEmailAddress::splitAddress(*it, name, email, comment) | 781 | if (KEmailAddress::splitAddress(*it, name, email, comment) | ||
782 | == KEmailAddress::AddressOk) { | 782 | == KEmailAddress::AddressOk) { | ||
783 | destTodo->addAttendee( | 783 | destTodo->addAttendee(KCalCore::Attendee(name, email)); | ||
784 | KCalCore::Attendee::Ptr(new KCalCore::Attendee(name, email))); | | |||
785 | } | 784 | } | ||
786 | } | 785 | } | ||
787 | } | 786 | } | ||
788 | d->m_changer->modifyIncidence(parentItem, oldTodo); | 787 | d->m_changer->modifyIncidence(parentItem, oldTodo); | ||
789 | return true; | 788 | return true; | ||
790 | } | 789 | } | ||
791 | } | 790 | } | ||
792 | } | 791 | } | ||
▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines |