<table><tr><td style="">dfaure created this revision.<br />dfaure added reviewers: dvratil, dkurz, ochurlaud.<br />dfaure requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D16509">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This way, recreating the davgroupware resource won't lose all colors.<br />
Same thing when the server temporarily "forgets" that those folders<br />
exist, as we had recently on a kolab server.</p>

<p>I'm assuming that all resources actually set a remote ID.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Removing colors from eventviewsrc, and assigning colors to calendars in korganizer,<br />
I can now see this in eventviewsrc:<br />
<a href="https://caldav.kdab.com/calendars/dfaure@kdab.com/0a9636a30e83-8c02805b740e-0a0dee75/=126,140,141" class="remarkup-link" target="_blank" rel="noreferrer">https://caldav.kdab.com/calendars/dfaure@kdab.com/0a9636a30e83-8c02805b740e-0a0dee75/=126,140,141</a><br />
and restarting korganizer shows the colors I picked.</p>

<p>Restoring an old backup of eventviewsrc with collection IDs as key, those colors still work<br />
(so the compat code works).</p>

<p>In all of this, what is still missing is to upload user-chosen colors to the DAV server...</p></div></div><br /><div><strong>BRANCH</strong><div><div>Applications/18.08</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16509">https://phabricator.kde.org/D16509</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/helper.cpp</div></div></div><br /><div><strong>To: </strong>dfaure, dvratil, dkurz, ochurlaud<br /><strong>Cc: </strong>KDE PIM<br /></div>