summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-11-28 05:15:27 (UTC)
committer zautrix <zautrix>2005-11-28 05:15:27 (UTC)
commit1267a02fc23575f82247f8bd8449dc70dab62d44 (patch) (unidiff)
treefda71877c6b590a3a5035e310c03950e1081b06f
parentb7522a13b64225bb91bdab4a21b44282f8c3e3b4 (diff)
downloadkdepimpi-1267a02fc23575f82247f8bd8449dc70dab62d44.zip
kdepimpi-1267a02fc23575f82247f8bd8449dc70dab62d44.tar.gz
kdepimpi-1267a02fc23575f82247f8bd8449dc70dab62d44.tar.bz2
sync
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libkcal/calendarlocal.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp
index 8a5a76f..ce3cd09 100644
--- a/libkcal/calendarlocal.cpp
+++ b/libkcal/calendarlocal.cpp
@@ -283,14 +283,14 @@ void CalendarLocal::addCalendar( Calendar* cal )
283 Todo * ev = TodoList.first(); 283 Todo * ev = TodoList.first();
284 while ( ev ) { 284 while ( ev ) {
285 ev->resetRelatedTo(); 285 ev->resetRelatedTo();
286 Todo * se = todo( ev->uid() );
287 if ( se )
288 deleteTodo( se );
286 ev = TodoList.next(); 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 );
295 ev->registerObserver( this ); 295 ev->registerObserver( this );
296 mTodoList.append( ev ); 296 mTodoList.append( ev );
@@ -312,8 +312,8 @@ void CalendarLocal::addCalendar( Calendar* cal )
312 } 312 }
313 } 313 }
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 }
318 } 318 }
319 setModified( true ); 319 setModified( true );