diff --git a/SoObjects/Appointments/SOGoAppointmentFolders.m b/SoObjects/Appointments/SOGoAppointmentFolders.m index 7e861f424..dcacacbf5 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolders.m +++ b/SoObjects/Appointments/SOGoAppointmentFolders.m @@ -412,32 +412,6 @@ static SoSecurityManager *sm = nil; return componentSet; } -- (void) reloadWebCalendars: (BOOL) forceReload -{ - NSArray *refs; - SOGoWebAppointmentFolder *folder; - SOGoUserSettings *us; - NSDictionary *calSettings; - NSString *ref; - int count, max; - - [self _migrateWebCalendarsSettings]; - us = [[SOGoUser userWithLogin: owner] userSettings]; - calSettings = [us objectForKey: @"Calendar"]; - refs = [[calSettings objectForKey: @"WebCalendars"] allKeys]; - max = [refs count]; - for (count = 0; count < max; count++) - { - ref = [refs objectAtIndex: count]; - folder = [SOGoWebAppointmentFolder - folderWithSubscriptionReference: ref - inContainer: self]; - if (folder - && (forceReload || [folder reloadOnLogin])) - [folder loadWebCalendar]; - } -} - - (void) _migrateWebCalendarsSettings { SOGoUserSettings *us; @@ -474,6 +448,32 @@ static SoSecurityManager *sm = nil; [us synchronize]; } +- (void) reloadWebCalendars: (BOOL) forceReload +{ + NSArray *refs; + SOGoWebAppointmentFolder *folder; + SOGoUserSettings *us; + NSDictionary *calSettings; + NSString *ref; + int count, max; + + [self _migrateWebCalendarsSettings]; + us = [[SOGoUser userWithLogin: owner] userSettings]; + calSettings = [us objectForKey: @"Calendar"]; + refs = [[calSettings objectForKey: @"WebCalendars"] allKeys]; + max = [refs count]; + for (count = 0; count < max; count++) + { + ref = [refs objectAtIndex: count]; + folder = [SOGoWebAppointmentFolder + folderWithSubscriptionReference: ref + inContainer: self]; + if (folder + && (forceReload || [folder reloadOnLogin])) + [folder loadWebCalendar]; + } +} + - (NSException *) _fetchPersonalFolders: (NSString *) sql withChannel: (EOAdaptorChannel *) fc {