Initialize the view's preferences
When TimelineView::showDates()
attempts to get the user's preferred
calendar colors, preferences()
returns an empty object, and the view
ends up using random colors for the time blocks.
See also korganizer!25 (merged)
Edited by Glen Ditchfield