Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 3d728ea1 authored by Volker Krause's avatar Volker Krause

Preserve calendar product ids when loading ical data

parent 5e4efa68
......@@ -133,6 +133,7 @@ private Q_SLOTS:
calendar.reset(new KCalCore::MemoryCalendar(QTimeZone()));
KCalCore::ICalFormat format;
QVERIFY(format.fromRawString(calendar, inFile.readAll()));
} else if (inputFile.endsWith(QLatin1String(".eml")) || inputFile.endsWith(QLatin1String(".mbox"))) {
mimeMsg.reset(new KMime::Message);
......@@ -209,7 +209,9 @@ void ExtractorEnginePrivate::setContent(KMime::Content *content)
#ifdef HAVE_KCAL
m_calendar.reset(new KCalCore::MemoryCalendar(QTimeZone()));
KCalCore::ICalFormat format;
if (!format.fromRawString(m_calendar, content->decodedContent())) {
if (format.fromRawString(m_calendar, content->decodedContent())) {
} else {
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