Commit e1cbc621 authored by Volker Krause's avatar Volker Krause
Browse files

Adapt to KCalCore::Person changes

parent e74272e0
......@@ -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.10.0")
set(KCALENDARCORE_LIB_VERSION "5.11.40")
set(KCALENDARCORE_LIB_VERSION "5.11.42")
set(AKONADICALENDAR_LIB_VERSION "5.11.40")
set(KMIME_LIB_VERSION "5.11.40")
set(LIBKDEPIM_LIB_VERSION "5.11.40")
......
......@@ -138,7 +138,7 @@ void AgendaItem::updateIcons()
mIconRecur = mIncidence->recurs() || mIncidence->hasRecurrenceId();
mIconAlarm = mIncidence->hasEnabledAlarms();
if (mIncidence->attendeeCount() > 1) {
if (mEventView->kcalPreferences()->thatIsMe(mIncidence->organizer()->email())) {
if (mEventView->kcalPreferences()->thatIsMe(mIncidence->organizer().email())) {
mIconReply = false;
mIconGroup = false;
mIconGroupTent = false;
......
......@@ -627,7 +627,7 @@ bool EventView::makesWholeDayBusy(const KCalCore::Incidence::Ptr &incidence) con
// Last check: must be organizer or attendee:
if (kcalPreferences()->thatIsMe(ev->organizer()->email())) {
if (kcalPreferences()->thatIsMe(ev->organizer().email())) {
return true;
}
......
......@@ -673,9 +673,7 @@ void TodoView::addTodo(const QString &summary, const Akonadi::Item &parentItem,
KCalCore::Todo::Ptr todo(new KCalCore::Todo);
todo->setSummary(summaryTrimmed);
todo->setOrganizer(
Person::Ptr(new Person(CalendarSupport::KCalPrefs::instance()->fullName(),
CalendarSupport::KCalPrefs::instance()->email())));
todo->setOrganizer(Person(CalendarSupport::KCalPrefs::instance()->fullName(), CalendarSupport::KCalPrefs::instance()->email()));
todo->setCategories(categories);
......
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