merge of '94da50397e51ef2f1bf7530b7a3c4b2e9e1594f6'

and 'd350e00bfd2567a3222879e516694b309523070e'

Monotone-Parent: 94da50397e51ef2f1bf7530b7a3c4b2e9e1594f6
Monotone-Parent: d350e00bfd2567a3222879e516694b309523070e
Monotone-Revision: 3b129c3c362bac1e7fdf67d93f24a6e9be27fdc1

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-07-16T13:20:52
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert
2009-07-16 13:20:52 +00:00
3 changed files with 51 additions and 32 deletions

View File

@@ -615,6 +615,19 @@ iRANGE(2);
- (NSString *) title
{
SOGoObject <SOGoComponentOccurence> *co;
NSString *tag;
co = [self clientObject];
if ([co isNew] && [co isKindOfClass: [SOGoCalendarComponent class]])
{
tag = [co componentTag];
if ([tag isEqualToString: @"vevent"])
[self setTitle: [self labelForKey: @"New Event"]];
else if ([tag isEqualToString: @"vtodo"])
[self setTitle: [self labelForKey: @"New Task"]];
}
return title;
}