-rw-r--r-- | libkcal/calendarlocal.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp index 8a5a76f..ce3cd09 100644 --- a/libkcal/calendarlocal.cpp +++ b/libkcal/calendarlocal.cpp | |||
@@ -285,10 +285,10 @@ void CalendarLocal::addCalendar( Calendar* cal ) | |||
285 | ev->resetRelatedTo(); | 285 | ev->resetRelatedTo(); |
286 | ev = TodoList.next(); | 286 | Todo * se = todo( ev->uid() ); |
287 | if ( se ) | ||
288 | deleteTodo( se ); | ||
289 | ev = TodoList.next(); | ||
287 | } | 290 | } |
288 | //TodoList = cal->rawTodos(); | 291 | //TodoList = cal->rawTodos(); |
289 | ev = TodoList.first(); | 292 | ev = TodoList.first(); |
290 | while ( ev ) { | 293 | while ( ev ) { |
291 | Todo * se = todo( ev->uid() ); | ||
292 | if ( se ) | ||
293 | incList.append( se ); | ||
294 | ev->unRegisterObserver( cal ); | 294 | ev->unRegisterObserver( cal ); |
@@ -314,4 +314,4 @@ void CalendarLocal::addCalendar( Calendar* cal ) | |||
314 | { | 314 | { |
315 | for (Incidence * ev = incList.first(); ev; ev = incList.next() ) { | 315 | for (Incidence * inc = incList.first(); inc; inc = incList.next() ) { |
316 | deleteIncidence ( ev ); | 316 | deleteIncidence ( inc ); |
317 | } | 317 | } |