mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 10:55:25 +00:00
Monotone-Parent: ad0652e110056f0a30b9fa6a1efffe2bd0de832a
Monotone-Revision: 9995223a0452fd05c8a2bc29a4e75bddaa07438b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-17T13:35:08 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -255,29 +255,30 @@
|
||||
/* lookup object in the users Calendar */
|
||||
SOGoAppointmentFolder *calendar;
|
||||
NSString *filename;
|
||||
|
||||
if ([self hasCalendarAccess])
|
||||
|
||||
if (!storedEventFetched)
|
||||
{
|
||||
if (!storedEventObject)
|
||||
{
|
||||
calendar = [self calendarFolder];
|
||||
if ([calendar isKindOfClass: [NSException class]])
|
||||
[self errorWithFormat:@"Did not find Calendar folder: %@", calendar];
|
||||
else
|
||||
{
|
||||
filename = [calendar resourceNameForEventUID:[[self inEvent] uid]];
|
||||
if (filename)
|
||||
{
|
||||
storedEventObject = [calendar lookupName: filename
|
||||
inContext: [self context]
|
||||
acquire: NO];
|
||||
if ([storedEventObject isKindOfClass: [NSException class]])
|
||||
if ([self hasCalendarAccess])
|
||||
{
|
||||
calendar = [self calendarFolder];
|
||||
if ([calendar isKindOfClass: [NSException class]])
|
||||
[self errorWithFormat:@"Did not find Calendar folder: %@", calendar];
|
||||
else
|
||||
{
|
||||
filename = [calendar resourceNameForEventUID:[[self inEvent] uid]];
|
||||
if (filename)
|
||||
{
|
||||
storedEventObject = [calendar lookupName: filename
|
||||
inContext: [self context]
|
||||
acquire: NO];
|
||||
if ([storedEventObject isKindOfClass: [NSException class]])
|
||||
storedEventObject = nil;
|
||||
else
|
||||
[storedEventObject retain];
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
[storedEventObject retain];
|
||||
}
|
||||
}
|
||||
}
|
||||
storedEventFetched = YES;
|
||||
}
|
||||
|
||||
return storedEventObject;
|
||||
|
||||
Reference in New Issue
Block a user