[Kde-pim] Re: Single file resources create new collection when re-reading backend file
Sérgio Martins
iamsergio at gmail.com
Sun Jul 31 22:47:59 BST 2011
2011/7/31 David Jarvie <djarvie at kde.org>:
> The SingleFileResource base class does a clearCache() and synchronize() when it re-reads the backend file (e.g. if it is changed by an external process). This has the side effect that the resource's collection is removed and a new one created. The way I've coded things in KAlarm, this poses a problem, because KAlarm stores collection IDs to identify its calendars. If a resource changes its collection ID, this makes KAlarm think that the calendar has been deleted, and a new one created, when all that has really happened is that the calendar's contents have changed.
This explains why calendars forget their colour settings in korganizer.
Regards,
Sérgio
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list