propagate from branch 'ca.inverse.sogo.1_3_10' (head fdaa328ccd09482653fc768fbb48964163c257d9)

to branch 'ca.inverse.sogo' (head 157b737337e2cd599c6a85f573fbd507b9e7b73e)

Monotone-Parent: 157b737337e2cd599c6a85f573fbd507b9e7b73e
Monotone-Parent: fdaa328ccd09482653fc768fbb48964163c257d9
Monotone-Revision: 1c6331f7285001088f0ae617c98daa1544595cc1

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-11-21T20:48:29
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle 2011-11-21 20:48:29 +00:00
commit 5c3121a9d3
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2011-11-21 Francis Lachapelle <flachapelle@inverse.ca>
* iCalTimeZone.m (+knownTimeZoneNames): ignore files that don't
have a .ics extension.
2011-11-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* iCalTrigger.m (-setValue:, value): removed useless accessors.

View file

@ -148,8 +148,11 @@ static NSArray *knownTimeZones;
if ([fm fileExistsAtPath: zonePath isDirectory: &b] && !b)
{
ext = [zone rangeOfString: @".ics"];
zone = [zone substringToIndex: ext.location];
[timeZoneNames addObject: zone];
if (ext.location != NSNotFound)
{
zone = [zone substringToIndex: ext.location];
[timeZoneNames addObject: zone];
}
}
}
}