-rw-r--r-- | libkcal/calendar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libkcal/calendar.cpp b/libkcal/calendar.cpp index b1806ee..8535191 100644 --- a/libkcal/calendar.cpp +++ b/libkcal/calendar.cpp | |||
@@ -371,25 +371,25 @@ void Calendar::addIncidenceBranch(Incidence *i) | |||
371 | addIncidence( i ); | 371 | addIncidence( i ); |
372 | Incidence * inc; | 372 | Incidence * inc; |
373 | QPtrList<Incidence> Relations = i->relations(); | 373 | QPtrList<Incidence> Relations = i->relations(); |
374 | for (inc=Relations.first();inc;inc=Relations.next()) { | 374 | for (inc=Relations.first();inc;inc=Relations.next()) { |
375 | addIncidenceBranch( inc ); | 375 | addIncidenceBranch( inc ); |
376 | } | 376 | } |
377 | } | 377 | } |
378 | 378 | ||
379 | bool Calendar::addIncidence(Incidence *i) | 379 | bool Calendar::addIncidence(Incidence *i) |
380 | { | 380 | { |
381 | Incidence::AddVisitor<Calendar> v(this); | 381 | Incidence::AddVisitor<Calendar> v(this); |
382 | if ( i->calID() == 0 ) | 382 | if ( i->calID() == 0 ) |
383 | i->setCalID( mDefaultCalendar ); | 383 | i->setCalID_block( mDefaultCalendar ); |
384 | i->setCalEnabled( true ); | 384 | i->setCalEnabled( true ); |
385 | return i->accept(v); | 385 | return i->accept(v); |
386 | } | 386 | } |
387 | void Calendar::deleteIncidence(Incidence *in) | 387 | void Calendar::deleteIncidence(Incidence *in) |
388 | { | 388 | { |
389 | if ( in->typeID() == eventID ) | 389 | if ( in->typeID() == eventID ) |
390 | deleteEvent( (Event*) in ); | 390 | deleteEvent( (Event*) in ); |
391 | else if ( in->typeID() == todoID ) | 391 | else if ( in->typeID() == todoID ) |
392 | deleteTodo( (Todo*) in); | 392 | deleteTodo( (Todo*) in); |
393 | else if ( in->typeID() == journalID ) | 393 | else if ( in->typeID() == journalID ) |
394 | deleteJournal( (Journal*) in ); | 394 | deleteJournal( (Journal*) in ); |
395 | } | 395 | } |