(fix) default calendar category colors

pull/91/head
Ludovic Marcotte 2015-04-28 15:15:42 -04:00 committed by Francis Lachapelle
parent d43d31d144
commit 8074e67b84
1 changed files with 13 additions and 0 deletions

View File

@ -130,6 +130,19 @@ static SoProduct *preferencesProduct = nil;
[defaults setCalendarCategories: categoryLabels];
}
if (![defaults calendarCategoriesColors])
{
NSMutableDictionary *colors;
int i;
categoryLabels = [defaults calendarCategories];
colors = [NSMutableDictionary dictionaryWithCapacity: [categoryLabels count]];
for (i = 0; i < [categoryLabels count]; i++)
[colors setObject: @"#aaa" forKey: [categoryLabels objectAtIndex: i]];
[defaults setCalendarCategoriesColors: colors];
}
//
// Default Contacts preferences