From a3671f52a06362158091a9d19709746e4ec4f8ec Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 11 Jul 2008 17:26:11 +0000 Subject: [PATCH] Monotone-Parent: 16bafd35c923b43175977acf723114a90f37d677 Monotone-Revision: ff35c4a69655239a569e90ab2fcc971a46c7b83f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-07-11T17:26:11 Monotone-Branch: ca.inverse.sogo --- UI/Scheduler/UIxAppointmentEditor.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/UI/Scheduler/UIxAppointmentEditor.m b/UI/Scheduler/UIxAppointmentEditor.m index 745d432a9..81cff9b69 100644 --- a/UI/Scheduler/UIxAppointmentEditor.m +++ b/UI/Scheduler/UIxAppointmentEditor.m @@ -60,6 +60,7 @@ - (void) dealloc { [item release]; + [event release]; [aptStartDate release]; [aptEndDate release]; [super dealloc]; @@ -91,7 +92,7 @@ hm = [self queryParameterForKey: @"hm"]; return (isAllDay - || (hm && [hm isEqualToString: @"allday"])); + || [hm isEqualToString: @"allday"]); } - (void) setIsAllDay: (BOOL) newIsAllDay @@ -137,7 +138,7 @@ int hour; newStartDate = [self selectedDate]; - if ([[self queryParameterForKey: @"hm"] length] == 0) + if (![[self queryParameterForKey: @"hm"] length]) { now = [NSCalendarDate calendarDate]; timeZone = [[context activeUser] timeZone]; @@ -202,7 +203,7 @@ co = [self clientObject]; objectId = [co globallyUniqueObjectId]; - if ([objectId length] > 0) + if ([objectId length]) { method = [NSString stringWithFormat:@"%@/%@.ics/editAsAppointment", [co soURL], objectId];