Commit 3286d625 authored by Volker Krause's avatar Volker Krause
Browse files

Adapt to KCalCore::Attachment changes

parent e07fd46c
......@@ -30,7 +30,7 @@ set(EVENTVIEW_LIB_VERSION ${PIM_VERSION})
set(CALENDARUTILS_LIB_VERSION "5.11.40")
set(AKONADI_LIB_VERSION "5.11.40")
set(QT_REQUIRED_VERSION "5.11.0")
set(KCALENDARCORE_LIB_VERSION "5.11.44")
set(KCALENDARCORE_LIB_VERSION "5.11.45")
set(AKONADICALENDAR_LIB_VERSION "5.11.40")
set(KMIME_LIB_VERSION "5.11.40")
set(LIBKDEPIM_LIB_VERSION "5.11.40")
......
......@@ -666,7 +666,7 @@ void AgendaItem::dropEvent(QDropEvent *e)
bool decoded = md->hasText();
QString text = md->text();
if (decoded && text.startsWith(QLatin1String("file:"))) {
mIncidence->addAttachment(KCalCore::Attachment::Ptr(new KCalCore::Attachment(text)));
mIncidence->addAttachment(KCalCore::Attachment(text));
return;
}
......
......@@ -771,8 +771,7 @@ bool TodoModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int r
KCalCore::Todo::Ptr oldTodo = KCalCore::Todo::Ptr(destTodo->clone());
if (text.startsWith(QLatin1String("file:"))) {
destTodo->addAttachment(KCalCore::Attachment::Ptr(new KCalCore::Attachment(
text)));
destTodo->addAttachment(KCalCore::Attachment(text));
} else {
QStringList emails = KEmailAddress::splitAddressList(text);
for (QStringList::ConstIterator it = emails.constBegin();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment