Fixed ics subscription crash with store

Monotone-Parent: 151b30c115a62428b80f871f09930672bb0b764b
Monotone-Revision: 11ca52315bdce5c8e4b000e5b9f33d5b2ecbd052

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-09-23T15:00:50
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert
2009-09-23 15:00:50 +00:00
parent 84c6a108b6
commit 7cc930fb55
6 changed files with 29 additions and 26 deletions
@@ -31,6 +31,11 @@
@implementation SOGoWebAppointmentFolder
- (void) deleteAllContent
{
[[self ocsFolder] deleteAllContent];
}
- (int) loadWebCalendar: (NSString *) location
{
NSURL *url;
@@ -57,7 +62,7 @@
calendar = [iCalCalendar parseSingleFromSource: contents];
if (calendar)
{
[[self ocsFolder] deleteAllContent];
[self deleteAllContent];
imported = [self importCalendar: calendar];
}
else