-rw-r--r-- | libkcal/calendar.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libkcal/calendar.cpp b/libkcal/calendar.cpp index 8535191..1350f6d 100644 --- a/libkcal/calendar.cpp +++ b/libkcal/calendar.cpp @@ -9,3 +9,2 @@ version 2 of the License, or (at your option) any later version. - This library is distributed in the hope that it will be useful, @@ -422,3 +421,3 @@ void Calendar::setupRelations( Incidence *incidence ) QString uid = incidence->uid(); - //qDebug("Calendar::setupRelations "); + //qDebug("Calendar::setupRelations %s", incidence->summary().latin1()); // First, go over the list of orphans and see if this is their parent @@ -427,2 +426,3 @@ void Calendar::setupRelations( Incidence *incidence ) i->setRelatedTo( incidence ); + //qDebug("Add child %s ti inc %s", i->summary().latin1(),incidence->summary().latin1()); incidence->addRelation( i ); @@ -435,5 +435,7 @@ void Calendar::setupRelations( Incidence *incidence ) // Try to find it - Incidence* parent = this->incidence( incidence->relatedToUid() ); + //qDebug("Test parent for %s", incidence->summary().latin1()); + Incidence* parent = this->incidenceForUid( incidence->relatedToUid(), true ); if( parent ) { // Found it + // qDebug("parent found for for %s", incidence->summary().latin1()); incidence->setRelatedTo( parent ); @@ -441,2 +443,3 @@ void Calendar::setupRelations( Incidence *incidence ) } else { + // qDebug("NO parent found for for %s", incidence->summary().latin1()); // Not found, put this in the mOrphans list |