From 97a019a169fdeacb7828ce48aac9e706e5bdcdd5 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 24 Mar 2009 17:33:15 +0000 Subject: [PATCH 1/2] Monotone-Parent: e862c091a9e60e7f16da927f0c0c174a7c80dd6f Monotone-Revision: c47b4189de100dcbf3a1ecb250e443f0ca4b3f91 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-03-24T17:33:15 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ SoObjects/SOGo/SOGoObject.m | 2 +- UI/Scheduler/UIxCalMainView.m | 17 ++++++----------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index cc7dac5c9..d290c9a5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-03-24 Wolfgang Sourdeau + + * UI/Scheduler/UIxCalMainView.m: if the module settings key + exists, do not reset it. + 2009-03-24 Ludovic Marcotte * UI/MailerUI/UIxMailListView.m diff --git a/SoObjects/SOGo/SOGoObject.m b/SoObjects/SOGo/SOGoObject.m index 2858b14d3..44b613c87 100644 --- a/SoObjects/SOGo/SOGoObject.m +++ b/SoObjects/SOGo/SOGoObject.m @@ -561,8 +561,8 @@ SEL SOGoSelectorForPropertySetter (NSString *property) [self _davPrivilegesFromRoles: roles]); [currentAce addObject: currentGrant]; [aces addObject: davElementWithContent (@"ace", @"DAV:", currentAce)]; - [currentAce release]; } + [currentAce release]; } - (void) _fillAcesWithRolesForPseudoPrincipals: (NSMutableArray *) aces diff --git a/UI/Scheduler/UIxCalMainView.m b/UI/Scheduler/UIxCalMainView.m index 86cd931ce..f1c56ee87 100644 --- a/UI/Scheduler/UIxCalMainView.m +++ b/UI/Scheduler/UIxCalMainView.m @@ -40,9 +40,6 @@ #import -static NSMutableArray *monthMenuItems = nil; -static NSMutableArray *yearMenuItems = nil; - @implementation UIxCalMainView - (void) _setupContext @@ -60,24 +57,22 @@ static NSMutableArray *yearMenuItems = nil; moduleSettings = [ud objectForKey: module]; if (!moduleSettings) { - moduleSettings = [NSMutableDictionary new]; - [moduleSettings autorelease]; + moduleSettings = [NSMutableDictionary dictionary]; + [ud setObject: moduleSettings forKey: module]; } - [ud setObject: moduleSettings forKey: module]; } - (NSArray *) monthMenuItems { + static NSMutableArray *monthMenuItems = nil; unsigned int count; if (!monthMenuItems) { - monthMenuItems = [NSMutableArray arrayWithCapacity: 12]; - + monthMenuItems = [[NSMutableArray alloc] initWithCapacity: 12]; for (count = 1; count < 13; count++) [monthMenuItems addObject: [NSString stringWithFormat: @"%.2d", count]]; - [monthMenuItems retain]; } return monthMenuItems; @@ -100,15 +95,15 @@ static NSMutableArray *yearMenuItems = nil; - (NSArray *) yearMenuItems { + static NSMutableArray *yearMenuItems = nil; int count, year; if (!yearMenuItems) { year = [[NSCalendarDate date] yearOfCommonEra]; - yearMenuItems = [NSMutableArray arrayWithCapacity: 11]; + yearMenuItems = [[NSMutableArray alloc] initWithCapacity: 11]; for (count = -5; count < 6; count++) [yearMenuItems addObject: [NSNumber numberWithInt: year + count]]; - [yearMenuItems retain]; } return yearMenuItems; From 912181b3e5796eed8f94c39c075e0c84a3507b89 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 24 Mar 2009 20:10:46 +0000 Subject: [PATCH 2/2] Monotone-Parent: c47b4189de100dcbf3a1ecb250e443f0ca4b3f91 Monotone-Revision: cae6414bdec9c9720651a6d880165e55830fd06d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-03-24T20:10:46 Monotone-Branch: ca.inverse.sogo --- UI/Scheduler/UIxRecurrenceEditor.m | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/UI/Scheduler/UIxRecurrenceEditor.m b/UI/Scheduler/UIxRecurrenceEditor.m index 6fc576fe5..cdc4ba4e1 100644 --- a/UI/Scheduler/UIxRecurrenceEditor.m +++ b/UI/Scheduler/UIxRecurrenceEditor.m @@ -29,13 +29,6 @@ @implementation UIxRecurrenceEditor -- (id) defaultAction -{ - [[self parent] setToolbar: @""]; - - return self; -} - - (NSArray *) monthlyRepeatList { static NSArray *monthlyRepeatList = nil; @@ -43,7 +36,7 @@ if (!monthlyRepeatList) { monthlyRepeatList = [NSArray arrayWithObjects: @"First", @"Second", @"Third", - @"Fourth", @"Fift", @"Last", nil]; + @"Fourth", @"Fift", @"Last", nil]; [monthlyRepeatList retain]; }