Bug 197645

Summary: KOrganizer - Fails to show the colors of the calendars added over akonadi in calendar list in sidebar upon restart
Product: [Applications] korganizer Reporter: Hakan Bayindir <hakan>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: smartins
Priority: NOR    
Version: 4.2.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: The look of calendar list after setting calendar colors.
The look of calendar list after relaunching KOrganizer

Description Hakan Bayindir 2009-06-23 20:12:04 UTC
Version:           4.2.2 (using 4.2.2 (KDE 4.2.2), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.29-2-686-bigmem

I have added some Google Calendars to the Akonadi service and imported these calendars from KOrganizer. I've set colors to each calendar and removed the color of the parent. when I closed and relaunch KOrganizer, two things happen:

1- Sibling calendars all lose their color in the sidebar but events show with true colors on the calendar display.

2- Parent grouper (The tree node that spans the calendars) becomes randomly colored.

How to reproduce:
1- Add some calendars to Akonadi (I use google calendars over remote iCAL files) via system settings.
2- Import these calendars to KOrganizer
3- Set color of each calendar by right clicking to resource and selecting Resource Colors -> Assign...
4- Close and re-open KOrganizer.
5- Siblings' colors have gone and parent got a random color. Hooray!

Notes:
0- You can re-set the colors but restart will reproduce the bug again. 1-Interestingly if you remove and re-add the calendars, sibling colors just show up OK.
2- When you try to re-set the colors of the siblings, the colors loaded in the color picker is the last color that you have set (i.e. correct color) for that calendar. 
3- If you set a color to the parent node, it reloads just OK.

Expected Behaviour:
Resource colors should be reloaded as saved. Siblings and parent should reflect the adjustments made in previous session (the session that the colors assigned / disabled)
Comment 1 Hakan Bayindir 2009-06-23 20:14:44 UTC
Created attachment 34769 [details]
The look of calendar list after setting calendar colors.
Comment 2 Hakan Bayindir 2009-06-23 20:15:32 UTC
Created attachment 34770 [details]
The look of calendar list after relaunching KOrganizer
Comment 3 Sergio Martins 2009-06-23 20:22:11 UTC
Fixed in 4.2.4 (svn rev 961855 ).