KCalendarCore: fix fallback to vCalendar loading on iCalendar load failure
ClosedPublic

Authored by winterz on Mar 27 2020, 8:12 PM.

Details

Summary

If iCalendar loading fails in ICalFormat::load() set an exception.

Then look for that exception in FileStorage::load(). If set, then we know to try vCalendar loading.

Test Plan

various scenarios tested. there could be other scenarios I didn't try.

at least I see vCalendars can load now.

Diff Detail

Repository
R172 KCalendar Core
Lint
Lint Skipped
Unit
Unit Tests Skipped
winterz created this revision.Mar 27 2020, 8:12 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptMar 27 2020, 8:12 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
winterz requested review of this revision.Mar 27 2020, 8:12 PM
dvratil accepted this revision.Mar 30 2020, 8:13 AM
This revision is now accepted and ready to land.Mar 30 2020, 8:13 AM
This revision was automatically updated to reflect the committed changes.