mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-27 15:59:29 +00:00
Revert merge from inverse
https://github.com/Zentyal/sogo/pull/150 Because the login on web with the use of outlook is broken after including the DomainLessLogin feature
This commit is contained in:
@@ -128,6 +128,7 @@ static NSArray *reminderValues = nil;
|
||||
|
||||
calendarCategories = nil;
|
||||
calendarCategoriesColors = nil;
|
||||
defaultCategoryColor = nil;
|
||||
category = nil;
|
||||
|
||||
label = nil;
|
||||
@@ -174,6 +175,7 @@ static NSArray *reminderValues = nil;
|
||||
[vacationOptions release];
|
||||
[calendarCategories release];
|
||||
[calendarCategoriesColors release];
|
||||
[defaultCategoryColor release];
|
||||
[category release];
|
||||
[label release];
|
||||
[mailLabels release];
|
||||
@@ -1519,6 +1521,15 @@ static NSArray *reminderValues = nil;
|
||||
ASSIGN (calendarCategoriesColors, [userDefaults calendarCategoriesColors]);
|
||||
|
||||
categoryColor = [calendarCategoriesColors objectForKey: category];
|
||||
if (!categoryColor)
|
||||
{
|
||||
if (!defaultCategoryColor)
|
||||
{
|
||||
dd = [[context activeUser] domainDefaults];
|
||||
ASSIGN (defaultCategoryColor, [dd calendarDefaultCategoryColor]);
|
||||
}
|
||||
categoryColor = defaultCategoryColor;
|
||||
}
|
||||
|
||||
return categoryColor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user