mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-07 09:25:09 +00:00
Monotone-Parent: ab2613d820779df99f34c6d0ae2ec38908cae05f
Monotone-Revision: 28cde865644a3171d49fc0d08dad0efa39112fa2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-04-19T21:30:25 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -124,32 +124,7 @@
|
||||
|
||||
- (WOResponse *) reloadWebCalendarsAction
|
||||
{
|
||||
SOGoUserSettings *settings;
|
||||
NSMutableDictionary *calSettings, *webCalendars;
|
||||
NSArray *calendarIds;
|
||||
SOGoWebAppointmentFolder *folder;
|
||||
NSString *name, *url;
|
||||
int i, count, imported;
|
||||
|
||||
settings = [[context activeUser] userSettings];
|
||||
calSettings = [settings objectForKey: @"Calendar"];
|
||||
webCalendars = [calSettings objectForKey: @"WebCalendars"];
|
||||
|
||||
if (webCalendars)
|
||||
{
|
||||
calendarIds = [webCalendars allKeys];
|
||||
count = [calendarIds count];
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
name = [calendarIds objectAtIndex: i];
|
||||
url = [webCalendars objectForKey: name];
|
||||
folder = [[self clientObject] lookupName: name
|
||||
inContext: context
|
||||
acquire: NO];
|
||||
if (folder)
|
||||
imported = [folder loadWebCalendar: url];
|
||||
}
|
||||
}
|
||||
[[self clientObject] reloadWebCalendars: YES];
|
||||
|
||||
return [self responseWith204];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user