mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-08 13:27:15 +00:00
See Changelog.
Monotone-Parent: f638868d7db65b1617476f06e76394a24bca8310 Monotone-Revision: c2f49ba857d8dcdda22d3395cb073bf99a040d49 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2011-01-18T03:07:38 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
ab94153bfc
commit
c3d4250b6f
2 files changed
+11
-3
No files matched your search
@@ -207,8 +207,9 @@
|
||||
inCalendar: (iCalCalendar *) calendar
|
||||
{
|
||||
NSArray *entities;
|
||||
NSCalendarDate *testRecId;
|
||||
iCalEntityObject *entity, *testEntity;
|
||||
int count, max, testRecId;
|
||||
int count, max, testRecIdSecs;
|
||||
|
||||
entities = [calendar events];
|
||||
max = [entities count];
|
||||
@@ -224,8 +225,9 @@
|
||||
for (count = 0; !entity && count < max; count++)
|
||||
{
|
||||
testEntity = [entities objectAtIndex: count];
|
||||
testRecId = (int) [[testEntity recurrenceId] timeIntervalSince1970];
|
||||
if ([[record objectForKey: @"c_recurrence_id"] intValue] == testRecId)
|
||||
testRecId = [testEntity recurrenceId];
|
||||
testRecIdSecs = testRecId? [[testEntity recurrenceId] timeIntervalSince1970] : 0;
|
||||
if ([[record objectForKey: @"c_recurrence_id"] intValue] == testRecIdSecs)
|
||||
entity = testEntity;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user