Repair broken logic
parent
bf67b6435f
commit
db8d9bb16c
|
@ -367,41 +367,32 @@ static NSArray *tasksFields = nil;
|
||||||
to: endDate
|
to: endDate
|
||||||
title: nil
|
title: nil
|
||||||
component: component];
|
component: component];
|
||||||
|
if (quickInfosFlag == YES)
|
||||||
|
{
|
||||||
|
for (i = 0; i < [allInfos count]; i++) {
|
||||||
|
if([quickInfosName containsObject:[[allInfos objectAtIndex:i] objectForKey:@"c_name"]])
|
||||||
|
[allInfos removeObjectAtIndex:i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
for (i = 0; i < [allInfos count]; i++)
|
for (i = 0; i < [allInfos count]; i++)
|
||||||
{
|
{
|
||||||
if (quickInfosFlag && ![quickInfosName containsObject:[[allInfos objectAtIndex:i] objectForKey:@"c_name"]])
|
iCalString = [[allInfos objectAtIndex:i] objectForKey:@"c_content"];
|
||||||
{
|
calendar = [iCalCalendar parseSingleFromSource: iCalString];
|
||||||
iCalString = [[allInfos objectAtIndex:i] objectForKey:@"c_content"];
|
master = [calendar firstChildWithTag:component];
|
||||||
calendar = [iCalCalendar parseSingleFromSource: iCalString];
|
if (master) {
|
||||||
master = [calendar firstChildWithTag:component];
|
if ([[master comment] length] > 0)
|
||||||
if (master) {
|
{
|
||||||
if ([[master comment] length] > 0)
|
match = [[master comment] rangeOfString:value options:NSCaseInsensitiveSearch];
|
||||||
{
|
if (match.length > 0) {
|
||||||
match = [[master comment] rangeOfString:value options:NSCaseInsensitiveSearch];
|
[quickInfos addObject:[allInfos objectAtIndex:i]];
|
||||||
if (match.length > 0) {
|
|
||||||
[quickInfos addObject:[allInfos objectAtIndex:i]];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
iCalString = [[allInfos objectAtIndex:i] objectForKey:@"c_content"];
|
|
||||||
calendar = [iCalCalendar parseSingleFromSource: iCalString];
|
|
||||||
master = [calendar firstChildWithTag:component];
|
|
||||||
if (master) {
|
|
||||||
if ([[master comment] length] > 0)
|
|
||||||
{
|
|
||||||
match = [[master comment] rangeOfString:value options:NSCaseInsensitiveSearch];
|
|
||||||
if (match.length > 0) {
|
|
||||||
[quickInfos addObject:[allInfos objectAtIndex:i]];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
currentInfos = [quickInfos objectEnumerator];
|
|
||||||
|
currentInfos = [quickInfos objectEnumerator];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue