Before using addMonthlyDay we need to set the recurrence type to monthly, otherwise addMonthlyDay will immediately return without doing anything, and the recurrence will have an empty set of days (and thus korganizer crashed when trying to access the first of them). Use some default values, because we don't know the duration yet, which is the last entry in the vcal RRULE. At the end, setMonthly will be called again with the correct values, anyway.
Before using addMonthlyDay we need to set the recurrence type to monthly, otherwise addMonthlyDay will immediately return without doing anything, and the recurrence will have an empty set of days (and thus korganizer crashed when trying to access the first of them). Use some default values, because we don't know the duration yet, which is the last entry in the vcal RRULE. At the end, setMonthly will be called again with the correct values, anyway.

With this fix, the .calendar file from bug 57252 can be correctlly imported (the ical importer converts the .calendar file to a temporary .vcs file and loads that one).

CCMAIL: 57252-done@bugs.kde.org

svn path=/trunk/kdepim/; revision=263056

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi