From 56b22dc2280ce45f48edcd6f2bb2028a5566aa85 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 28 Oct 2010 16:33:47 +0000 Subject: [PATCH] See SOPE/NGCards/ChangeLog Monotone-Parent: c4ccff8062153bbdf5f6cb2b916a3d927df78a6b Monotone-Revision: 683b1b4ca76fe2ce7466ee989977f39eeab86856 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-10-28T16:33:47 Monotone-Branch: ca.inverse.sogo --- SOPE/NGCards/ChangeLog | 5 +++++ SOPE/NGCards/iCalRecurrenceRule.m | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/SOPE/NGCards/ChangeLog b/SOPE/NGCards/ChangeLog index cb2732934..f906ac05a 100644 --- a/SOPE/NGCards/ChangeLog +++ b/SOPE/NGCards/ChangeLog @@ -1,3 +1,8 @@ +2010-10-28 Francis Lachapelle + + * iCalRecurrenceRule.m (-isInfinite): a repeat count set to 0 is + no longer consider a limit (ie, isInfinite will be true). + 2010-10-27 Wolfgang Sourdeau * NGVCard.m (-setCategories): make use of the new method below. diff --git a/SOPE/NGCards/iCalRecurrenceRule.m b/SOPE/NGCards/iCalRecurrenceRule.m index 763a896dd..03238e42f 100644 --- a/SOPE/NGCards/iCalRecurrenceRule.m +++ b/SOPE/NGCards/iCalRecurrenceRule.m @@ -514,7 +514,7 @@ NSString *iCalWeekDayString[] = { @"SU", @"MO", @"TU", @"WE", @"TH", @"FR", - (BOOL) isInfinite { - return !([self repeatCount] || [self untilDate]); + return !(([self repeatCount] && [self repeatCount] > 0) || [self untilDate]); } /* private */