Commit bbaed347 authored by Sergio Martins's avatar Sergio Martins
Browse files

Ignore events with invalid DTSTART.

Fixes kontact freezing for a couple of seconds.

CCBUG: 235690
parent f44ba137
......@@ -111,6 +111,13 @@ void CalendarBasePrivate::internalInsert( const Akonadi::Item &item )
return;
}
if ( incidence->type() == KCalCore::Incidence::TypeEvent && !incidence->dtStart().isValid() ) {
// TODO: make the parser discard them would also be a good idea
kWarning() << "Discarding event with invalid DTSTART. identifier="
<< incidence->instanceIdentifier() << "; summary=" << incidence->summary();
return;
}
Akonadi::Collection collection = item.parentCollection();
if (collection.isValid()) {
// Some items don't have collection set
......
Supports Markdown
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